home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / !commodities! / docs / kcommodity.man < prev    next >
Text File  |  1996-09-07  |  121KB  |  4,210 lines

  1.  
  2.  
  3.  
  4.  
  5.                                KCommodity  V2.00
  6.  
  7.  
  8.                           for the Amiga running OS 2.0
  9.  
  10.  
  11.  
  12.                                        by
  13.  
  14.                                     Kai Iske
  15.  
  16.  
  17.  
  18.                                7th September 1992
  19.  
  20.  
  21.  
  22.  
  23.  
  24.   Contents
  25.  
  26.  
  27.  
  28.   1  Introduction                                                            4
  29.      1.1  Copyright  ....................................................... 4
  30.      1.2  Guarantee  ....................................................... 4
  31.      1.3  Evolution  ....................................................... 4
  32.      1.4  Installation  .................................................... 5
  33.      1.5  For users of older versions  ..................................... 5
  34.  
  35.  
  36.   2  Starting the program                                                    6
  37.      2.1  Starting from Workbench  ......................................... 6
  38.      2.2  Starting from CLI / SHELL  ....................................... 6
  39.      2.3  The program`s ToolTypes  ......................................... 7
  40.  
  41.  
  42.   3  Overview of functions                                                  10
  43.      3.1  Fundamental topics for the usage  ............................... 10
  44.           3.1.1  The AppIcon and the AppMenuItem  ......................... 10
  45.           3.1.2  The HotKeys  ............................................. 11
  46.           3.1.3  The windows  ............................................. 11
  47.           3.1.4  The gadgets .............................................. 11
  48.      3.2  Special features of KCommodity   ................................ 13
  49.           3.2.1  The window activator  .................................... 13
  50.           3.2.2  Autocenter  .............................................. 13
  51.           3.2.3  MMB-Shift  ............................................... 13
  52.           3.2.4  NoClick  ................................................. 14
  53.           3.2.5  WildStar   ............................................... 14
  54.           3.2.6  The time display  ........................................ 14
  55.           3.2.7  The online time .......................................... 14
  56.           3.2.8  The memory display  ...................................... 15
  57.           3.2.9  Alarm function  .......................................... 15
  58.  
  59.  
  60.  
  61.                                        1
  62.  
  63.  
  64.  
  65.  
  66.  
  67.   CONTENTS                                                                   2
  68.  
  69.  
  70.  
  71.           3.2.10 Keystroke clicker  ....................................... 15
  72.           3.2.11 Environment variables  ................................... 15
  73.           3.2.12 Screen / Window cycling   ................................ 15
  74.           3.2.13 Windowreactivation  ...................................... 16
  75.           3.2.14 LeftyMouse  .............................................. 16
  76.           3.2.15 Closing windows using the ESC key  ....................... 16
  77.           3.2.16 Mapping of "Umlauts" ..................................... 16
  78.           3.2.17 Screen / Mouse Blanker  .................................. 17
  79.           3.2.18 Mouse accelerator   ...................................... 17
  80.           3.2.19 Mouse locking   .......................................... 17
  81.           3.2.20 Mouse coordinates  ....................................... 17
  82.           3.2.21 Exploding Windows  ....................................... 18
  83.           3.2.22 Full drag   .............................................. 18
  84.           3.2.23 Funktion keys ............................................ 18
  85.           3.2.24 Formatter  ............................................... 18
  86.           3.2.25 Memory "Snapshot"  ....................................... 18
  87.           3.2.26 Opening a shell via HotKey  .............................. 19
  88.           3.2.27 Telephone bill calculator  ............................... 19
  89.           3.2.28 Revision Control System .................................. 19
  90.           3.2.29 Display dump ............................................. 19
  91.           3.2.30 ARexx Port  .............................................. 19
  92.  
  93.  
  94.   4  The telephone bill calculator                                          20
  95.  
  96.  
  97.   5  The revision Control System                                            22
  98.      5.1  First revision of a sourcecode with the Revision Control System   23
  99.      5.2  Revision of an already revised sourcecode  ...................... 24
  100.      5.3  The revision header`s special features .......................... 26
  101.  
  102.  
  103.   6  Usage within the windows                                               28
  104.      6.1  The main window ................................................. 28
  105.           6.1.1 Functions, which can not be reached via gadgets  .......... 31
  106.      6.2  The Settings window  ............................................ 31
  107.      6.3  The Miscellaneou window  ........................................ 34
  108.      6.4  The Alarm modes window  ......................................... 36
  109.      6.5  The Blanking window  ............................................ 37
  110.      6.6  The Cycling window  ............................................. 38
  111.      6.7  Display colors  ................................................. 39
  112.      6.8  The Mouse window  ................................................40
  113.  
  114.  
  115.  
  116.  
  117.  
  118.   CONTENTS                                                                   3
  119.  
  120.  
  121.  
  122.      6.9  The HotKeys window   ............................................ 41
  123.           6.9.1 Description for defining a HotKey   ....................... 45
  124.      6.10 The Display dump window   ....................................... 46
  125.      6.11 The Funktion Keys window  ....................................... 50
  126.      6.12 The Formatter window ............................................ 52
  127.      6.13 The Lock windows window   ....................................... 54
  128.      6.14 The Bill window   ............................................... 55
  129.      6.15 The Preferences window  ......................................... 56
  130.  
  131.  
  132.   7  The ARexx Port                                                         59
  133.      7.1  Commands for the ARexx Port  .................................... 59
  134.      7.2  Status numbers  ................................................. 63
  135.  
  136.  
  137.   A  Error codes                                                            67
  138.  
  139.  
  140.   B  Why KCommodity ?                                                       71
  141.  
  142.  
  143.  
  144.  
  145.  
  146.   Chapter  1
  147.  
  148.  
  149.  
  150.   Introduction
  151.  
  152.  
  153.  
  154.   1.1    Copyright
  155.  
  156.  
  157.   You  are allowed to copy and spread this program but only if you do not make
  158.   any  commercial  profit  out  of the program itself and all supported files.
  159.   The  source  of KCommodity is considered teachware and the author claims the
  160.   right  to  be  the  only  one  to  produce  and  distribute  new versions of
  161.   KCommodity.   Public  Domain  vendors are not allowed to sell KCommodity for
  162.   more than the price of a regular disk.
  163.  
  164.  
  165.  
  166.   1.2    Guarantee
  167.  
  168.  
  169.   The  author  does  not  give any guarantee that the program KCommodity works
  170.   perfectly.   The  program was tested and it is used every day, anyway nobody
  171.   is  perfect and that is why I can not take the responsibilty for any damages
  172.   occured during the usage of KCommodity.
  173.  
  174.  
  175.  
  176.   1.3    Evolution
  177.  
  178.  
  179.   KCommodity  was  developed  out  of the need to reduce the amount of smaller
  180.   programs,  which  should  ease  the daily work with the computer.  Instead I
  181.   wanted  to create an effecient program, which should implement the functions
  182.   of  these utilities and that my program might go one step further.  At first
  183.   KCommodity  only  consisted  of  a  window activator, which gave me the pos-
  184.   sibility  to  activate windows via keystroke or via mouse movement.  Growing
  185.   knowledge of the new Operating System and the eagerness to minimize the
  186.  
  187.  
  188.  
  189.                                        4
  190.  
  191.  
  192.  
  193.  
  194.  
  195.   CHAPTER 1.  INTRODUCTION                                                   5
  196.  
  197.  
  198.  
  199.   number of running utilities there were more functions to be implemented into
  200.   KCommodity.   So  KCommodity  became  bigger  and  bigger  but it`s size, in
  201.   comparison to it`s functions, was held small.
  202.      Now I`ve come to a point that KCommodity almost completely suits my needs
  203.   and  that it replaces other programs of it`s kind.  I hope that you like the
  204.   supported  functions  as  much  as  I  do  and I wait for any suggestions to
  205.   implement new, powerful functions.
  206.  
  207.  
  208.  
  209.   1.4    Installation
  210.  
  211.  
  212.   You may copy the main program KCommodity to any location on your (Hard)Disk.
  213.   If  you  want  to  have  it started on every boot-up I recommend to place it
  214.   within  the  SYS:WBSTARTUP  drawer  of  your  Workbench.   You  can copy the
  215.   KCX.PREFS file to the ENVARC:KCX/ drawer.  Maybe you will have to create the
  216.   KCX/ directory yourself:  MakeDir ENVARC:KCX.
  217.      If  you do not copy the KCX.PREFS file to this drawer KCommodity will use
  218.   it`s  built-in  defaults, if the preferences file can not be found in any of
  219.   the  programs`s  search  paths.   The KCX.PREFS file will be loaded on every
  220.   startup, so you will have to save your main preferences to that file.
  221.  
  222.  
  223.  
  224.   1.5    For users of older versions
  225.  
  226.  
  227.   Because  of  the  many  changes  made to KCommodity since the last release I
  228.   could not keep up the old preferences format.  Just because of these changes
  229.   it  would  not  have been reasonable to program a converter for older prefe-
  230.   rences  files.   You will have to do adjust your settings by hand and delete
  231.   the old files.
  232.  
  233.  
  234.  
  235.  
  236.  
  237.   Chapter  2
  238.  
  239.  
  240.  
  241.   Starting  the  program
  242.  
  243.  
  244.  
  245.   KCommodity can be started either from Workbench or from CLI / SHELL.
  246.  
  247.  
  248.  
  249.   2.1    Starting from Workbench
  250.  
  251.  
  252.   If  you start KCommodity from Workbench, you may enter some preferences into
  253.   the  .info file of the program, which will be loaded on startup.  Within the
  254.   .info  file  there should be another ToolType set except for these discussed
  255.   in  The  program`s ToolTypes.  This ToolType will prevent the Workbench from
  256.   waiting until KCommodity stops, if the program was launched during boot time
  257.   (assuming  that  the  program  is  located within the SYS:WBStartUp drawer).
  258.   This ToolType is called DONOTWAIT.
  259.  
  260.  
  261.  
  262.   2.2    Starting from CLI / SHELL
  263.  
  264.  
  265.   Of  course  you  can start KCommodity from your CLI / SHELL, but you have to
  266.   know that KCommodity does not detach itself from the CLI / SHELL so you will
  267.   have  to  use  RUN  /  RUNBACK1  to  prevent  KCommodity  from  blocking the
  268.   environment  of  your CLI / SHELL.  When you start KCommodity you can supply
  269.   the  same  ToolTypes  within  the  commandline as described in The program`s
  270.   ToolTypes.   Instead  of  using one form for supplying parameters within the
  271.   .info  file  you  have  two  on the commandline.  The first is to have a `='
  272.   between the keyword and the value and the second is to have
  273.      1
  274.      The latest version of RunBack can be found on Fred Fish Disk 429
  275.  
  276.  
  277.  
  278.                                        6
  279.  
  280.  
  281.  
  282.  
  283.  
  284.   CHAPTER 2.  STARTING THE PROGRAM                                           7
  285.  
  286.  
  287.  
  288.   a  space between them.  Remember that parameters which include spaces should
  289.   be enclosed in brackets.
  290.  
  291.  
  292.  
  293.                            e.g. "CX POPKEY=LALT HELP"
  294.                                        or
  295.                              CX POPKEY "LALT HELP"
  296.  
  297.  
  298.  
  299.      Additionally you have the possibility to retrieve a little Helptext.  The
  300.   syntax is as follows:
  301.  
  302.                                 KCommodity Help
  303.  
  304.      This  command  will  print  out  a  little  table  showing  all available
  305.   ToolTypes.  Starting KCommodity like this
  306.  
  307.                                   KCommodity ?
  308.  
  309.      will  show  you  a  list  of  all  available  ToolTypes  giving  you  the
  310.   possibility to type in the requested keywords and start the program.
  311.  
  312.  
  313.  
  314.   2.3    The program`s ToolTypes
  315.  
  316.  
  317.   KCommodity knows some ToolTypes which can either be located within the .info
  318.   file or may be issued on the command line.  The syntax should be of the form
  319.   ToolType=Value.   If you start the program from a command line you can leave
  320.   out the `=' and replace it by a space.
  321.  
  322.      Here are the ToolTypes the program recognizes.
  323.  
  324.  
  325.        CX PRIORITY=n        Sets the priority for the program`s section
  326.                             which controls the HotKeys.  If you issue a
  327.                             priority > 0 it may be that HotKeys initial-
  328.                             ized by other programs may not be reached
  329.                             anymore if KCommodity uses the same. De-
  330.                             fault: It`s neutral 0.
  331.  
  332.          CX POPKEY=s        Lets you define a new HotKey for opening
  333.                             KCommodity`s main window.  The Value for
  334.                             this ToolType will overwrite the definition
  335.                             loaded from the Preferences file.   Default:
  336.                             LCOMMAND HELP.
  337.  
  338.      CX POPUP=YES|NO        You can choose whether the main window
  339.                             should be opened on startup or not.  Issuing
  340.  
  341.  
  342.  
  343.  
  344.  
  345.   CHAPTER 2.  STARTING THE PROGRAM                                           8
  346.  
  347.  
  348.  
  349.                             YES will open the window whilst NO will
  350.                             keep it away. Default: YES.
  351.  
  352.           PORTNAME=s        You can select a different name for the pro-
  353.                             gram`s ARexx-Port.  Please remember that
  354.                             this name`s length should not exceed 16 chars.
  355.                             Normally this will be KComm.1.
  356.  
  357.            TOOLPRI=n        This one is used to set the priority for the pro-
  358.                             gram itself. This may be usefull while running
  359.                             other programs of KCommodity`s kind, since
  360.                             they might conflict.  Just set the priority to
  361.                             a slightly higher value and all the problems
  362.                             should be gone. Default: Again the neutral 0.
  363.  
  364.         HANDLERPRI=n        This ToolTypes lets you define the priority for
  365.                             the InputHandler.  This Handler is used to
  366.                             control KCommodity`s functions like window
  367.                             activator etc.pp.  If you use other programs
  368.                             like KCommodity it may happen that these
  369.                             conflict. Just supply a higher priority and it
  370.                             should be done. Remember that the minimum
  371.                             priority for such a Handler is 51. Default: 55.
  372.  
  373.           SETTINGS=s        You can have a different Preferences file to be
  374.                             loaded on startup. If KCommodity is not suc-
  375.                             cessful in finding the specified file it will try
  376.                             to open the default KCX.PREFS within the
  377.                             current directory. If this attempt also fails it
  378.                             will look for the file within ENV:KCX/.  If
  379.                             that one could not be found, too, KCommod-
  380.                             ity will use it`s built-in defaults.
  381.  
  382.               NOICON        This simple ToolTypes tells KCommodity not
  383.                             to generate the AppIcon2 on the Workbench.
  384.  
  385.               NOMENU        If do not want to have the AppMenuItem2,
  386.                             too, use this ToolType.
  387.  
  388.                ICONX        Using this ToolType you may specify the Ap-
  389.                             pIcons X-Position. Default setting is that the
  390.                             Workbench should find a suitable location.
  391.      2
  392.      See The AppIcon and the AppMenuItem
  393.  
  394.  
  395.  
  396.  
  397.  
  398.   CHAPTER 2.  STARTING THE PROGRAM                                          9
  399.  
  400.  
  401.  
  402.                ICONY        Same as above,  with only one exeception.
  403.                             This  ToolType  controls  the  AppIcon`s  Y-
  404.                             Position on the Workbench Screen.
  405.  
  406.  
  407.  
  408.  
  409.  
  410.   Chapter  3
  411.  
  412.  
  413.  
  414.   Overview  of  functions
  415.  
  416.  
  417.  
  418.   KCommodity  offers a variety of functions and in fact some of them might not
  419.   be  helpfull  for  you  but  the  program was designed to cover almost every
  420.   possiblity in helping the user.  If you find certain functions to be useless
  421.   you can deactivate them of course.
  422.  
  423.  
  424.  
  425.   3.1    Fundamental topics for the usage
  426.  
  427.  
  428.   KCommodity  offers  some  windows from which you can retrieve information or
  429.   change  the  program`s  settings.   This  section will explain the different
  430.   functions.
  431.  
  432.  
  433.  
  434.   3.1.1   The AppIcon and the AppMenuItem
  435.  
  436.  
  437.   If  not  chosen differently when started, KCommodity will display an AppIcon
  438.   on the Workbench screen.  This icon does not have anything to do with normal
  439.   Worbench  icons.   These  stand  for  programs  which  can  be  started by a
  440.   double-click on the corresponding icon which is defined within the program`s
  441.   .info file.  An AppIcon is a so called Applications Icon.  This type of icon
  442.   is  generated  by  programs  from  which  the  user may communicate with the
  443.   program.   For KCommodity the AppIcon only has one function:  A double-click
  444.   on the icon will open up the main window.
  445.      Furthermore  KCommodity will generate an AppMenuItem which is appended to
  446.   the Tools menu of the Workbench.  Each program can add one (or more) entries
  447.   to  that  menu.  The method of selection of one of these entries is the same
  448.   as for "normal" menus.  KCommodity will add a menu entry
  449.  
  450.  
  451.  
  452.                                        10
  453.  
  454.  
  455.  
  456.  
  457.  
  458.   CHAPTER 3.  OVERVIEW OF FUNCTIONS                                         11
  459.  
  460.  
  461.  
  462.   called KCX Main-Window from which you can open the program`s main window.
  463.  
  464.  
  465.  
  466.   3.1.2   The HotKeys
  467.  
  468.  
  469.   KCommodity  supports  several  HotKeys.   Take a look at chapter The HotKeys
  470.   window for further information.
  471.  
  472.  
  473.  
  474.   3.1.3   The windows
  475.  
  476.  
  477.   The  gadgets  within  the  windows  do  have an underlined char within their
  478.   descriptive text.  Using this key you can control gadgets via keyboard.
  479.      All  windows  may  be closed by a single hit on the ESC key or by hitting
  480.   the Close Gadget.
  481.  
  482.  
  483.  
  484.   3.1.4   The gadgets
  485.  
  486.  
  487.   As  mentioned above a gadget`s descriptive text contains an underlined char.
  488.   This  char  is  a  shortcut  for  reaching  a gadget without clicking on it.
  489.   Cycle,   Slider,   and  ListView  Gadgets  offer  one  more  possibility  in
  490.   controlling  them  via  keyboard.   If you hit the shortcut unshifted theses
  491.   Gadgets  will  scroll  forward  in their selection.  A shifted shortcut will
  492.   scroll backward.
  493.      Within  KCommodity`s windows String Gadgets do have some special features
  494.   for editing, which in fact are not available within the normal system.  Here
  495.   is a list of features which are supported by the Operating System:
  496.  
  497.  
  498.            RIGHT AMIGA X        Clears the current input.
  499.  
  500.            RIGHT AMIGA Q        Restores  the  previously  cleared  input,
  501.                                 which  might  has  been  deleted  using
  502.                                 RIGHT AMIGA X.
  503.  
  504.                      TAB        Activates the next available gadget. Gad-
  505.                                 gets are cycled through.
  506.  
  507.                SHIFT TAB        Activates the previous gadget.
  508.  
  509.                     HELP        Will exit the String Gadget.
  510.  
  511.              CURSOR LEFT        The cursor is moved to the left.
  512.  
  513.             CURSOR RIGHT        The cursor is moved to the right.
  514.  
  515.                      DEL        Deletes the char underneith the cursor
  516.                                 and moves text, which may reside to the
  517.                                 right of the cursor, to the left.
  518.  
  519.  
  520.  
  521.  
  522.  
  523.   CHAPTER 3.  OVERVIEW OF FUNCTIONS                                         12
  524.  
  525.  
  526.  
  527.                BACKSPACE        Deletes the char left to the cursor and
  528.                                 moves the cursor one position to the left,
  529.                                 while any text to the right of the cursor is
  530.                                 also moved to the left. Has no effect if the
  531.                                 cursor already is at the leftmost position.
  532.  
  533.                   RETURN        End an input.
  534.  
  535.  
  536.  
  537.      And  now  to the functions supplied to KCommodity`s String Gadgets.  Some
  538.   of the "normal" features get enhanced functions:
  539.  
  540.  
  541.                   RETURN        The currently active String Gadget is ex-
  542.                                 ited from and the next available gadget
  543.                                 will be activated.   Gadgets are cycled
  544.                                 through.
  545.  
  546.             SHIFT RETURN        Like RETURN but the previous gadget
  547.                                 will be activated instead.
  548.  
  549.              CURSOR DOWN        Like RETURN.
  550.  
  551.                CURSOR UP        Like SHIFT RETURN.
  552.  
  553.         CTRL CURSOR LEFT        Moves the cursor to the next word to the
  554.                                 left of the cursor`s current position. Has
  555.                                 no effect if the cursor already resides at
  556.                                 the first position of the box.
  557.  
  558.        CTRL CURSOR RIGHT        Moves the cursor to the next word to
  559.                                 the right of the cursor`s current position.
  560.                                 This function has no effect if the cursor
  561.                                 already is positioned at the end of the in-
  562.                                 put line.
  563.  
  564.        RIGHT AMIGA + key        This  function  offers  the  possibility  to
  565.                                 reach menu entries from within String
  566.                                 Gadgets.  Therefore it is of no need to
  567.                                 exit a gadget for activating a menu entry
  568.                                 or another gadget.  The currently active
  569.                                 gadget will be reactivated (if there is a
  570.                                 need for).
  571.  
  572.  
  573.  
  574.  
  575.  
  576.   CHAPTER 3.  OVERVIEW OF FUNCTIONS                                         13
  577.  
  578.  
  579.  
  580.   3.2    Special features of KCommodity
  581.  
  582.  
  583.   Now  I  would  like to come to the special functions KCommodity offers which
  584.   make  the program worth using.  Mainly these functions exist for helping you
  585.   while working on your Amiga.
  586.  
  587.  
  588.  
  589.   3.2.1   The window activator
  590.  
  591.  
  592.   This  feature  serves for activating windows by a simple keystroke while the
  593.   mouse  pointer  resides  over  a  window.   So move the mouse to the desired
  594.   window  and  just  start  typing.   KCommodity will immediately activate the
  595.   window and it redirects the input to this window.
  596.      The  second  possibility  for activating windows is to use the mouse.  In
  597.   this  mode every window will be activated which is touched by the mouse.  If
  598.   you move the mouse at a higher speed windows will not be activated.  Windows
  599.   will only be activated immediately if the mouse is moved at a lower speed or
  600.   over a short distance.
  601.      This  window activator is so intelligent not to deactivate windows active
  602.   String  Gadgets  are  in,  if  the  mouse  is  not  located  over the window
  603.   containing  the  gadget.  So you can make your input without having to worry
  604.   about the mouseposition.
  605.      KCommodity  offers  the possibility to define windows which are not to be
  606.   deactivated when using the window activator.  This is accomplished by simply
  607.   specifying  the  window`s  name.   You  can use Wildcards for specifying the
  608.   names.   System-Requesters,  as  created by AutoRequest() and EasyRequest(),
  609.   will  automatically  deactivate  KCommodity`s  window  activator, so you may
  610.   control these Requesters via keyboard.
  611.  
  612.  
  613.  
  614.   3.2.2   Autocenter
  615.  
  616.  
  617.   KCommodity is able to center screens horizontally which do not have the full
  618.   width,  so  that these screens are not "glued" to the upper left edge of the
  619.   display.  Already open screens may be recentered using a HotKey.
  620.  
  621.  
  622.  
  623.   3.2.3   MMB-Shift
  624.  
  625.  
  626.   Is  abbreviation  for "Middle-Mouse-Button Shift".  This feature aids you in
  627.   multiselecting  Icons  on the Workbench.  While you are multiselecting there
  628.   is  no  need  to  press  the  Shift  key  anymore,  simply  hit  your middle
  629.   mousebutton.
  630.  
  631.  
  632.  
  633.  
  634.  
  635.   CHAPTER 3.  OVERVIEW OF FUNCTIONS                                         14
  636.  
  637.  
  638.  
  639.   3.2.4   NoClick
  640.  
  641.  
  642.   This option turns off drive clicking.
  643.  
  644.  
  645.  
  646.   3.2.5   WildStar
  647.  
  648.  
  649.   When  starting  KCommodity, the program will set a special flag within a DOS
  650.   structure, so you can use the '*' as Wildcard within the Shell.
  651.  
  652.  
  653.  
  654.   3.2.6   The time display
  655.  
  656.  
  657.   KCommodity  offers many possibilities for displaying the actual system time.
  658.   No  matter which display mode you choose the actual hour and minutes will be
  659.   displayed.
  660.      But there are several different modes you can choose from:
  661.  
  662.  
  663.      1.Display the current day
  664.  
  665.  
  666.         (a) In full length
  667.  
  668.         (b) Only three chars (e.g. Mon, Tue, ... ,Sun)
  669.  
  670.  
  671.      2.Display the actual date
  672.  
  673.  
  674.         (a) In German notation (DD-MM-YY)
  675.  
  676.         (b) in American notation (MM-DD-YY)
  677.  
  678.  
  679.      The  daynames  may  either  be  shown in German or English notation.  Be-
  680.   tween  the  digits of the datestring there may either be '-' or '.'.  As you
  681.   can  see  there  are  many  possibilities  to vary the display of the actual
  682.   system  date.  Just have a look at chapter The HotKeys window to get to know
  683.   other topics concerning this display.
  684.  
  685.  
  686.  
  687.   3.2.7   The online time
  688.  
  689.  
  690.   I  implemented  this  feature  with  users of modems in mind (including me).
  691.   Besides  the  time display there is one more display.  KCommodity is able to
  692.   display  the  time you are connected to a Bulletin Board System.  KCommodity
  693.   will start the timer when a Carrier is detected.
  694.  
  695.  
  696.  
  697.  
  698.  
  699.   CHAPTER 3.  OVERVIEW OF FUNCTIONS                                         15
  700.  
  701.  
  702.  
  703.   3.2.8   The memory display
  704.  
  705.  
  706.   There  is  another display mode.  KCommodity offers a small variety of modes
  707.   for displaying the free system memory.  There are three modes available:
  708.  
  709.  
  710.      1.Displaying the free Chip / Fast memory seperately.
  711.  
  712.  
  713.      2.Displaying the total free memory as digits.
  714.  
  715.  
  716.      3.Displaying the total free memory as a gauge.
  717.  
  718.  
  719.  
  720.      Have  a  look  at  chapter  The HotKeys window to learn how you can reach
  721.   these display modes.
  722.  
  723.  
  724.  
  725.   3.2.9   Alarm function
  726.  
  727.  
  728.   KCommodity  offers  the  possibility to "wake" you up.  By entering an alarm
  729.   time  and activating the alarm KCommodity will remind you at the given time.
  730.   Furthermore KCommodity can wake you up on every full hour.  If you find that
  731.   flahsing  display  or the soft beep to be inaccurate to wake you up, you may
  732.   select an IFF Format sound, which will be played at every alarm.
  733.  
  734.  
  735.  
  736.   3.2.10   Keystroke clicker
  737.  
  738.  
  739.   You  probably  know  this  feature  from professional keyboards.  These key-
  740.   boards  produce  a  clicking  sound  when  a  key  is  hit.  This feature is
  741.   simulated  by KCommodity.  You can set the volume for producing the sound to
  742.   have an acceptable simulation.
  743.  
  744.  
  745.  
  746.   3.2.11   Environment variables
  747.  
  748.  
  749.   If  you  want to offer the current system time to another application, which
  750.   does  not  supply  a time display, but is able to read environment variables
  751.   then  you  can  tell  KCommodity  to generate environment variables for you,
  752.   which contain the actual system time and date.
  753.  
  754.  
  755.  
  756.   3.2.12   Screen / Window cycling
  757.  
  758.  
  759.   Probably  you  know  that  problem:   There are several windows open and you
  760.   would  like  to move one to front, but it`s Depth Gadget is hidden by others
  761.   and you only see a small part of the desired window.  Normaly you would
  762.  
  763.  
  764.  
  765.  
  766.  
  767.   CHAPTER 3.  OVERVIEW OF FUNCTIONS                                         16
  768.  
  769.  
  770.  
  771.   have  to  click the other windows to back to uncover the Depth Gadget so you
  772.   can  click the window to front.  Not while KCommodity is running.  Just move
  773.   the  mouse  over  a part of the window and press one of the selected keys to
  774.   bring it to front.  Surely it is possible to bring a window to back the same
  775.   way.
  776.  
  777.      If  you  try  to  move a BackDrop window (e.g.  the WorkBench window) the
  778.   whole  screen  will  be  brought to front / back.  This also happens, if the
  779.   mouse  is  located right over a screen.  Users with a three-button-mouse can
  780.   use  the Screen Cycling by hitting the middle mousebutton.  These keystrokes
  781.   may  be  altered  by  the  user.   Furthermore  you can select the number of
  782.   "clicks" to occure before the selected function will be executed.
  783.  
  784.  
  785.  
  786.   3.2.13   Windowreactivation
  787.  
  788.  
  789.   While flipping through screens KCommodity will remember the currently active
  790.   window  on  every  screen  you  leave.   When  turning  back to that screen,
  791.   KCommodity will reactivate the window.
  792.  
  793.  
  794.  
  795.   3.2.14   LeftyMouse
  796.  
  797.  
  798.   This  is  a  small  function  for lefties.  KCommodity can swap the left and
  799.   right  mousebuttons  for you, so that lefties may use the "left" mousebutton
  800.   for clicking into windows.
  801.  
  802.  
  803.  
  804.   3.2.15   Closing windows using the ESC key
  805.  
  806.  
  807.   Isn`t  it  quite unsatisfactory to hit a Close Gadget every time you want to
  808.   close  a  window?   Let  KCommodity close windows which have a Close Gadget.
  809.   Many  programs  on  PCs  offer  the possibility to quit programs or to close
  810.   "windows"  by  hitting  the ESC key.  This option is emulated by KCommodity.
  811.   Due  to  the fact that not every program has no function tied to the ESC key
  812.   it is possible to set a qualifier, so that no incompatibilities may arise.
  813.  
  814.  
  815.  
  816.   3.2.16   Mapping of "Umlauts"
  817.  
  818.  
  819.   Owners  of  a  modem  will  like this feature.  Because German "Umlauts" are
  820.   mapped  differently  on  different  computer  systems  KCommodity offers the
  821.   possibility to convert these character to "normal" chars.  The pendants (ae,
  822.   oe, ue, ss) will be generated case-sensitively.
  823.  
  824.  
  825.  
  826.  
  827.  
  828.   CHAPTER 3.  OVERVIEW OF FUNCTIONS                                         17
  829.  
  830.  
  831.  
  832.   3.2.17   Screen / Mouse Blanker
  833.  
  834.  
  835.   KCommodity  may blank the screen or the mouse for you so that the screen may
  836.   not  burn  into the monitor`s display while there is no input from the usse.
  837.   The  mousepointer  will  be blanked automatically so that the mouse does not
  838.   cover part of your input and that you can see what you are writing.
  839.      You can choose from two modes for the Screen Blanker.  First there is the
  840.   normal  blanker  which  completely blanks the screen.  Secondly there is the
  841.   Dimmer  which  gives you the possibility to set a factor for dimming so that
  842.   there  still  will  be  some  parts  visible but the colors will not be that
  843.   bright  anymore.   This  does  not prevent the picture from burning into the
  844.   monitor  !   People  who  hope  to  have another "well-behaved" blanker with
  845.   KCommodity  are to be disappointed now.  KCommodity`s blanker does something
  846.   you  expect a blanker to do.  It blanks the screen and does not flip around.
  847.   Users  who  prefer  a  flipping  blanker  should  use Spliner instead.  This
  848.   program  by  Tim  Rokicki  and  Sebastiano  Vigna  is  a very "well-behaved"
  849.   program,  the  two  did a great job on.  That`s why it did not seem worth to
  850.   try to "beat" this program.
  851.  
  852.  
  853.  
  854.   3.2.18   Mouse accelerator
  855.  
  856.  
  857.   KCommodity  can  accelerate  the  mouse for you, that means the mousepointer
  858.   will  be  moved  faster  although  you are moving the mouse at a low speed /
  859.   range.   You  can  alter  the  acceleration  factor  and the threshold.  The
  860.   threshold  is  used  for  movements at a low range / speed.  If the mouse is
  861.   moved  within  that  range it will not be accelerated.  Otherwise KCommodity
  862.   will accelerate the pointer with the given factor.
  863.  
  864.  
  865.  
  866.   3.2.19   Mouse locking
  867.  
  868.  
  869.   In some situations it is preferable that the mouse movement should be locked
  870.   in  certain  directions (like positioning an Icon on the Workbench).  That`s
  871.   why  KCommodity  offers the possibility to lock the mouse movement.  You can
  872.   lock horizontal and vertical movements.
  873.  
  874.  
  875.  
  876.   3.2.20   Mouse coordinates
  877.  
  878.  
  879.   The  actual  mouse coodinates (relative to the actual Screen) may be printed
  880.   out, so that you always know where you are.
  881.  
  882.  
  883.  
  884.  
  885.  
  886.   CHAPTER 3.  OVERVIEW OF FUNCTIONS                                         18
  887.  
  888.  
  889.  
  890.   3.2.21   Exploding Windows
  891.  
  892.  
  893.   This  is  more  a  hack  than  a "useful" feature.  With an active Exploding
  894.   Windows function on opening a window frames will be drawn from the center of
  895.   the  screen  to  the  window`s  new  position.   It seems like the window is
  896.   smoothly growing to it`s full size.  When closing the window the motion will
  897.   go  the  other  way  around.   First  the window will be closed and then the
  898.   frames  will  be drawn back to the center of the screen.  This function does
  899.   not  have  any  effect  on backdrop windows.  But it does not have to be the
  900.   screen`s  center.   Alternatively  you can tell KCommodity to use the actual
  901.   mouse  position  as  the  animation`s  focus.  Additionally there is another
  902.   feature.   If  you  move a window, size it or "zoom" it frames will be drawn
  903.   from  the  window`s  current  position  to  the  new  one,  that  means  the
  904.   metamorphosis  will be shown.  To shorten the time for exploding / imploding
  905.   the  frames  on  "slow" Amigas you have the possibility to set the number of
  906.   frames to be drawn for exploding, imploding and sizing / moving / zooming.
  907.  
  908.  
  909.  
  910.   3.2.22   Full drag
  911.  
  912.  
  913.   Using  KCommodity  there is no need to click on a window`s titlebar in order
  914.   to  move that window.  Just click inside the window and perform the movement
  915.   as if you clicked on the titlebar.
  916.  
  917.  
  918.  
  919.   3.2.23   Funktion keys
  920.  
  921.  
  922.   The  ten function keys may be equipped with four strings.  It is possible to
  923.   map  three  special  strings  on  a  function key which will perform special
  924.   operations.
  925.  
  926.  
  927.  
  928.   3.2.24   Formatter
  929.  
  930.  
  931.   KCommodity may check every inserted disk, whether it is already formatted or
  932.   not.   If  not, KCommodity will give you the opportunity to format that disk
  933.   just inserted.  This function may also be called seperately.
  934.  
  935.  
  936.  
  937.   3.2.25   Memory "Snapshot"
  938.  
  939.  
  940.   Using  this  function  you  are  able  to  make  a snapshot of the currently
  941.   available  memory.   A second call of this function will show the difference
  942.   between  the  first  and  the second call so you can see how much memory was
  943.   used / freed
  944.  
  945.  
  946.  
  947.  
  948.  
  949.   CHAPTER 3.  OVERVIEW OF FUNCTIONS                                         19
  950.  
  951.  
  952.  
  953.   by  programs  launched / stopped between the two calls.  You can now analyze
  954.   if a program really freed all needed memory.
  955.  
  956.  
  957.  
  958.   3.2.26   Opening a shell via HotKey
  959.  
  960.  
  961.   You  may  open a shell by pressing a HotKey.  With KCommodity you can define
  962.   the  command  to  be  executed  exactly  the same way as to be issued on the
  963.   commandline.
  964.  
  965.  
  966.  
  967.   3.2.27   Telephone bill calculator
  968.  
  969.  
  970.   Again  a  small  help  for owners of modems.  As soon as you log into a BBS,
  971.   KCommodity will recognize the Carrier Detect and start counting the time and
  972.   costs while you are connected to the BBS.
  973.  
  974.  
  975.  
  976.   3.2.28   Revision Control System
  977.  
  978.  
  979.   This  feature  was  made for programmers.  While you are working on a larger
  980.   program  you  will sometimes reach a point you would like to record some in-
  981.   formation  about  the  development  of  the program.  KCommodity aids you in
  982.   doing  this.   You  can  insert  the  Revision  Header  directly  into  your
  983.   sourcecode.
  984.      These  headers  may  be  generated for Assembler, `C', Basic and Pascal /
  985.   Modula sourcecodes.
  986.  
  987.  
  988.  
  989.   3.2.29   Display dump
  990.  
  991.  
  992.   KCommodity  may  dump  the actual Screen/Window on a printer.  You have full
  993.   control over the look of the dump and area to be printed.
  994.  
  995.  
  996.  
  997.   3.2.30   ARexx Port
  998.  
  999.  
  1000.   KCommodity  is  equipped with an ARexx Port, from which you may retrieve any
  1001.   of the program`s settings or change any of the defaults.  Some functions may
  1002.   only be activated via the ARexx Port (Revision Control System).
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.   Chapter  4
  1009.  
  1010.  
  1011.  
  1012.   The  telephone  bill  calculator
  1013.  
  1014.  
  1015.  
  1016.   Some  of  you  own  a  modem but as you probably know (including me) you can
  1017.   never  definitly  say  how  much  the  calls  cost  you made.  That is why I
  1018.   included this feature.
  1019.  
  1020.      The telephone bill calculator can be fully configured to your needs.  You
  1021.   can  choose between three different time zones either normal or cheap tariff
  1022.   for  all of which you may set the duration for one unit.  KCommodity can not
  1023.   deal with one hundreds of a second but anyway, inaccurances may occure while
  1024.   counting the time because of intolerances (somewhat of about 1100 seconds is
  1025.   not  that  bad  I  guess and fixing that problem would have caused some more
  1026.   trouble).   Maybe there will be a better possibility to enter the time.  You
  1027.   can  enter  the  "cost"  for one unit (without that it really would not make
  1028.   much  sense).   The  input  is made in somewhat like cents, Pfennige, say in
  1029.   micros, but I think that is sufficient, since there might not be an currency
  1030.   which counts in millis.  Furthermore you can define the times for normal and
  1031.   cheap tariffs.  KCommodity will check the actual system time to see which of
  1032.   the  two  tariffs  should be used.  Weekdays on which cheap tariff should be
  1033.   used the whole day may be marked, too.
  1034.  
  1035.      As  soon  as  the  program  detects  a  Carrier,  that means if the modem
  1036.   establishes  a connection to a BBS, KCommodity will start to count the time.
  1037.   You  can  tell  the  program to open up the Bill window on a Carrier Detect.
  1038.   Data  about  the  phone call may be written to a log file, so that it can be
  1039.   analysed later and you can get an overview of arisen costs.  KCommodity also
  1040.   aids you in listing the data.  The program will print out all entries of the
  1041.   log file giving a total summary after the listing of one day and a final sum
  1042.   after all entries have been listed.  This printout may be redirected to a
  1043.  
  1044.  
  1045.  
  1046.                                        20
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.   CHAPTER 4.  THE TELEPHONE BILL CALCULATOR                                 21
  1053.  
  1054.  
  1055.  
  1056.   file or you can view it in a window.
  1057.  
  1058.      As mentioned above I do not take any responsibility for the correct work-
  1059.   ing  of  the  telephone  bill  calculation,  because slight inaccuracies may
  1060.   occure  within the system`s timer.  Additionaly it is of importance that you
  1061.   enter almost perfect times, because KCommodity`s results are only as good as
  1062.   your  inputs  are.   This function has only been implemented to have a rough
  1063.   overview of costs.
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.   Chapter  5
  1070.  
  1071.  
  1072.  
  1073.   The  revision  Control  System
  1074.  
  1075.  
  1076.  
  1077.   This  really is a fine feature.  It might be interesting for the programmers
  1078.   of  you,  which  are working on bigger, or even on smaller, projects.  While
  1079.   working  on  a  program it might be nice to see which changes were made to a
  1080.   program from this to that version.  Inserting this data by hand is not quite
  1081.   that what I call simple.  This is where KCommodity`s Revision Control System
  1082.   gets  to  work.   This  feature  aids you in inserting good looking Revision
  1083.   headers  directly  into  your  sourcecode.   All  you  have to do is to tell
  1084.   KCommodity  the  program`s name to be revised, what kind of sourcecode it is
  1085.   and what information KCommodity should insert into the Revision header.  For
  1086.   the  type  of  sourcecode  you can choose between Assembler, Basic, `C', and
  1087.   Pascal / Modula.  The main layout of the header is kept but only adjusted to
  1088.   perfectly fit into the desired type of sourcecode.
  1089.  
  1090.      The  special  thing  about  the  function  is  the way it is called.  The
  1091.   Revision Control System can only be called via ARexx.  That is why I present
  1092.   the syntax for that call now:
  1093.  
  1094.                          REVISE Filename ASM|BAS|C|PAS
  1095.  
  1096.      As  you  can  see  all  you  have  to do is to feed the function with the
  1097.   filename  and  an identifier for the type of sourcecode.  Having started the
  1098.   Revision  Control System KCommodity will first search the sourcecode whether
  1099.   there  already  is  a  Revision  header  inserted in the specified language.
  1100.   There  is  no  need  to position the header at the first line of the source.
  1101.   KCommodity  will search within the first 15 lines to find the header, giving
  1102.   you  the  possibility to add specific directives in front of the header.  So
  1103.   it  is  possible to insert text in front of the header1.  No matter if there
  1104.   already is a header this search will
  1105.      1
  1106.      Some Assemblers require special information within the first line of the
  1107.    source.
  1108.  
  1109.  
  1110.  
  1111.                                        22
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.   CHAPTER 5.  THE REVISION CONTROL SYSTEM                                   23
  1118.  
  1119.  
  1120.  
  1121.   always  be  made  when  the  Revision Control System is called.  From now on
  1122.   KCommodity  will go different paths in manipulating the source, depending on
  1123.   the existence of a header.
  1124.      Make  sure that the logical directory T:  is accessible, because KCommod-
  1125.   ity  needs  that  directory  to temporarily store it`s work.  To be secure I
  1126.   advise you to make a backup of your sourcecode before you start the Revision
  1127.   Control System.  (One can never know)
  1128.      If  you  want  the program to store your name and the name of your `firm'
  1129.   within the header you will have to set two environment variables.
  1130.  
  1131.  
  1132.  
  1133.                   AUTHOR       Set this variable to your name.
  1134.  
  1135.                   COMPANY        Enter your firm`s name here.
  1136.  
  1137.  
  1138.  
  1139.      Now following is a small example for setting these variables:
  1140.  
  1141.                             SETENV AUTHOR "Kai Iske"
  1142.                            SETENV COMPANY Gunthersoft
  1143.  
  1144.      As  you can see parameters which contain white spaces have to be enclosed
  1145.   by  quotes.   Insert  these settings within your s:User-StartUp file to have
  1146.   the variables available on every bootup.
  1147.  
  1148.  
  1149.  
  1150.   5.1    First revision of a sourcecode with the Revision Control System
  1151.  
  1152.  
  1153.   Assuming  this  situation  I  will now point out the actions KCommodity per-
  1154.   forms  when first used on a non-revised sourcecode.  A window will be opened
  1155.   with the following title:
  1156.  
  1157.         You can now enter a 5 lines (60 chars per line) Purpose Message
  1158.  
  1159.      As  the  title says you are now to enter a purpose for the sourcecode you
  1160.   want  to revise.  You have the possibility to enter 5 lines and 60 chars per
  1161.   line.   When  you  are done with the purpose message you can enter some more
  1162.   specific  data.  You can tell KCommodity which version number to use for the
  1163.   first revision.  This input is made within the Integer Gadgets at the bottom
  1164.   of the window.
  1165.  
  1166.      The  left  gadget  is  used  to enter the version number.  Into the right
  1167.   gadget  you  can  enter  the  revision  number.  Entering `0'.`0' KCommodity
  1168.   assumes  that you do not mind if the program automaticaly uses `1.0' for the
  1169.   version
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.   CHAPTER 5.  THE REVISION CONTROL SYSTEM                                   24
  1176.  
  1177.  
  1178.  
  1179.   number.   The  gadgets OK and CANCEL are self-explanatory.  Whilst OK starts
  1180.   the revision CANCEL is used to abort.
  1181.  
  1182.      Assuming  that  you  have  made  all  the  input and started the Revision
  1183.   Control  System  I  will  now  describe the actions KCommodity will take for
  1184.   building  the header.  At first a part of the standard header will be built.
  1185.   The production will be made within T:.  If the environment variables are set
  1186.   the  author`s  and  the  `firm`s' name will be stored within the header.  If
  1187.   KCommodity  was  not  able  to  find one variable, or even both of them, the
  1188.   corresponding  fields  will be set to ` Unknown '.  Furthermore the filename
  1189.   and  the  actual system date will be inserted.  The current revision will be
  1190.   set to the value you specified or to the value KCommodity automaticaly uses.
  1191.   Now  the `purpose' text will be inserted and finally a `log message' for the
  1192.   current  revision  will be appended to the header.  This log message will be
  1193.   set  to  ` Initial release ' for the first revision, because it is assumable
  1194.   that  no  changes  have  been  made.  Behind the log message KCommodity will
  1195.   insert six macros, which reflect date of the revision, time of the revision,
  1196.   name  of  the  author, who made the revision, the current revision number of
  1197.   the  sourcecode and version/revision numbers.  Please have a look at chapter
  1198.   The  revision  header`s  special  features  for  further  information.   The
  1199.   Revision  header will be created at the start of the sourcecode, so you will
  1200.   have  to  insert  lines  which  have to be in front of the header, after you
  1201.   revised the source.
  1202.  
  1203.  
  1204.  
  1205.   5.2    Revision of an already revised sourcecode
  1206.  
  1207.  
  1208.   If  there  already was a header within the sourcecode KCommodity will now go
  1209.   the  second  way.   Again  a  window  will be opened which does not visually
  1210.   differ to the Log window.  The window`s title is:
  1211.  
  1212.           You can now enter a 5 lines (60 chars per line) Log Message
  1213.  
  1214.      You can enter a descriptive text for all changes made to the source since
  1215.   the  last release (Log message) here.  The two Integer Gadgets at the bottom
  1216.   of  the  window can be used to set the new revision number KCommodity should
  1217.   continue  with.   If  you  leave  the  gadgets set to `0'.`0' KCommodity in-
  1218.   creases  the  actual  revision  number  by  .01.   Otherwise it will use the
  1219.   supplied number.  Selecting OK you tell KCommodity to continue whilst CANCEL
  1220.   aborts the procedure.
  1221.  
  1222.      Did  you  tell  KCommodity  to  continue  only  important entries will be
  1223.   changed  within  the  header.  The actual revision number will be set to the
  1224.   new
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.   CHAPTER 5.  THE REVISION CONTROL SYSTEM                                   25
  1231.  
  1232.  
  1233.  
  1234.   value  and  the  log message will be inserted before the previously entered.
  1235.   The  log  message`s  header  gives  you  information about the author of the
  1236.   revision  and  when  the  changes  were made.  Finally the macros behind the
  1237.   header  will  be  recreated.  For further information have a look at section
  1238.   The  revision  header`s  special  features.  The header`s postion within the
  1239.   source  will  be  kept  unchanged  but  the  source`s  length  will increase
  1240.   slightly.  If the first of the six macros could not be found right after the
  1241.   header,  KCommodity  assumes  that you no longer want the program to rebuild
  1242.   the macros and so it does not make a refresh.  So if you insert a blank line
  1243.   between header and macros no more changes will be made to them.
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.   CHAPTER 5.  THE REVISION CONTROL SYSTEM                                   26
  1250.  
  1251.  
  1252.  
  1253.   5.3    The revision header`s special features
  1254.  
  1255.  
  1256.   Here is a small example for the look of the header in Assembler.
  1257.  
  1258.  
  1259.  
  1260.    ;
  1261.    ; A maximum of 14 lines above the header
  1262.    ;
  1263.  
  1264.    ;* $Revision Header built automatically *************** (do not edit) *****
  1265.    ;*
  1266.    ;* Copyright by <COMPANY>
  1267.    ;*
  1268.    ;* File         : <this would be the name of the file>
  1269.    ;* Created on    : Sunday, 05-01-92 02:27:25
  1270.    ;* Created by    : <AUTHOR>
  1271.    ;* Current revision : V1.01
  1272.    ;*
  1273.    ;*
  1274.    ;* Purpose
  1275.    ;*
  1276.    ;*   This is just a test for the purpose string
  1277.    ;*   and a second line
  1278.    ;*
  1279.    ;* Revision V1.01
  1280.    ;*
  1281.    ;* changed on Sunday, 05-01-92 02:27:45 by <AUTHOR>.  LogMessage :
  1282.    ;*   And a test for a LogMessage
  1283.    ;*   second line
  1284.    ;*   third line
  1285.    ;*
  1286.    ;* Revision V1.00
  1287.    ;*
  1288.    ;*    Initial release
  1289.    ;*
  1290.    ;**************************************************************************
  1291.   REVISION MACRO
  1292.            dc.b "1.01"
  1293.            ENDM
  1294.   REVDATE  MACRO
  1295.            dc.b "05-Jan-92"
  1296.            ENDM
  1297.   REVTIME  MACRO
  1298.            dc.b "02:27:45"
  1299.            ENDM
  1300.   AUTHOR   MACRO
  1301.            dc.b "Kai Iske"
  1302.            ENDM
  1303.   VERNUM   EQU  1
  1304.   REVNUM   EQU  01
  1305.  
  1306.    ;
  1307.    ; This is where your sourcecode would start at
  1308.    ;
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.   CHAPTER 5.  THE REVISION CONTROL SYSTEM                                   27
  1315.  
  1316.  
  1317.  
  1318.      This  is  the  header  of  an Assembler sourcecode which was revised once
  1319.   after  it  was created.  The field <COMPANY> will be filled with the name of
  1320.   the  company (if present).  The <AUTHOR> fields will be filled with the name
  1321.   of  the  author  as long as the environment variable could be found.  At the
  1322.   end  of  the  header  you  find six macros.  These macros reflect the actual
  1323.   revision  number,  date of revision, time of revision,the name of the author
  1324.   having  done  the  revision  and version/revision number.  You can use these
  1325.   macros within your sourcecode, so that you can tell the user something about
  1326.   the program`s "evolution" during runtime.
  1327.  
  1328.      The  Basic,  `C'  and  Pascal / Modula pendants take the same names as in
  1329.   Assembler.  The `C' type macros will be set as #defines into the sourcecode.
  1330.   As  you might believe the Basic versions are string variables which have a $
  1331.   prepended.
  1332.  
  1333.      There  is  one  thing to remember while using the Pascal / Modula macros:
  1334.   To make these macros available within sourcecodes I chose the possibility to
  1335.   declare the macros as CONSTants.  Therefore the CONST symbol will immediatly
  1336.   follow  the  header  and then following are the macros.  So you will have to
  1337.   add any other constant declarations after KCommodity`s.
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.   Chapter  6
  1344.  
  1345.  
  1346.  
  1347.   Usage  within  the  windows
  1348.  
  1349.  
  1350.  
  1351.   On  startup  KCommodity`s  main window will open up (if not selected differ-
  1352.   ently).   This  chapter tells you how you can control the window`s functions
  1353.   and  to  manipulate  the  behaviour of the programs`s features.  Furthermore
  1354.   some  "small"  functions  will  be described here.  Except for the Telephone
  1355.   bill  calculator  and  the  Revision  Control  System  you will find all the
  1356.   information  you  need  to configure KCommodity and you will get to know the
  1357.   other  possibilities  the  program  offers.   I do not mention each function
  1358.   seperately  because  it  would  have been a useless waste of time and space.
  1359.   The description will be made window by window whilst special options will be
  1360.   pointed out seperately.
  1361.  
  1362.  
  1363.  
  1364.   6.1    The main window
  1365.  
  1366.  
  1367.   This window is considered to be a control panel to reach other windows from.
  1368.      You may reach the following windows:
  1369.  
  1370.  
  1371.      ° Settings
  1372.  
  1373.  
  1374.      ° Miscellaneous
  1375.  
  1376.  
  1377.      ° Alarm modes
  1378.  
  1379.  
  1380.      ° Blanking
  1381.  
  1382.  
  1383.      ° Cycling
  1384.  
  1385.  
  1386.  
  1387.                                        28
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      29
  1394.  
  1395.  
  1396.  
  1397.      ° Display Colors
  1398.  
  1399.  
  1400.      ° Mouse
  1401.  
  1402.  
  1403.      ° HotKeys
  1404.  
  1405.  
  1406.      ° Graphics dump
  1407.  
  1408.  
  1409.      ° Funktion keys
  1410.  
  1411.  
  1412.      ° Formatter
  1413.  
  1414.  
  1415.      ° Lock windows
  1416.  
  1417.  
  1418.      ° Bill
  1419.  
  1420.  
  1421.      ° Preferences
  1422.  
  1423.  
  1424.      Within the main window you can control the commodity settings.
  1425.      Now to the gadgets which do not lead to sub-windows:
  1426.  
  1427.  
  1428.  
  1429.   Load Prefs
  1430.  
  1431.  
  1432.   Having  selected this gadget, a filerequester will open up asking for a file
  1433.   to  load  new settings from, which should be used by KCommodity from now on.
  1434.   Using  this feature you may store several settings to your (Hard)Disk.  Have
  1435.   a look at section Save Prefs to see which data is written to that file.
  1436.  
  1437.  
  1438.  
  1439.   Save Prefs
  1440.  
  1441.  
  1442.   As  mentioned  under  Load  Prefs a filerequester will open up.  You can now
  1443.   specify  a  file  the  current settings should be written to.  The following
  1444.   data is written to that file:
  1445.  
  1446.  
  1447.      ° All settings of all windows
  1448.  
  1449.  
  1450.      ° The position / size of all windows
  1451.  
  1452.  
  1453.      ° Position and size of the filerequester
  1454.  
  1455.  
  1456.  
  1457.   Enable
  1458.  
  1459.  
  1460.   Clicking  onto this gadget will invert the status after Disable.  All of the
  1461.   program`s functions will be reenabled.
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      30
  1468.  
  1469.  
  1470.  
  1471.   Disable
  1472.  
  1473.  
  1474.   Selecting  this  gadget will turn off almost all of the program`s functions.
  1475.   Touched are the following features:
  1476.  
  1477.  
  1478.      ° The window activator
  1479.  
  1480.  
  1481.      ° The mouse accelerator
  1482.  
  1483.  
  1484.      ° The keystroke clicker
  1485.  
  1486.  
  1487.      ° The screen / window cycling
  1488.  
  1489.  
  1490.      ° LeftyMouse
  1491.  
  1492.  
  1493.      ° ESC Window Close
  1494.  
  1495.  
  1496.      ° Mapping of Umlauts
  1497.  
  1498.  
  1499.      ° Screen / mouse blanker
  1500.  
  1501.  
  1502.      ° The function keys
  1503.  
  1504.  
  1505.      ° All HotKeys
  1506.  
  1507.  
  1508.      Please  remember  that  KCommodity`s windows can not be opened via HotKey
  1509.   anymore.   You  will  have to use either the AppIcon, AppMenuItem or use the
  1510.   Exchange  program  to  open the program`s main window and from there you can
  1511.   open  the  other  windows.   Of course you can reenable KCommodity using the
  1512.   Exchange program.
  1513.  
  1514.  
  1515.  
  1516.   Hide
  1517.  
  1518.  
  1519.   Closes KCommodity`s main window.
  1520.  
  1521.  
  1522.  
  1523.   Quit
  1524.  
  1525.  
  1526.   This gadget was integrated only for test purposes.  It will quit KCommodity,
  1527.   but anyway who really wants to quit the program :-)
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      31
  1534.  
  1535.  
  1536.  
  1537.   6.1.1   Functions, which can not be reached via gadgets
  1538.  
  1539.  
  1540.   There are two functions within the main window, which can not be reached via
  1541.   gadgets.  Therefore you will have to use the menue.
  1542.  
  1543.  
  1544.  
  1545.     Save Preferences   This menu entry within the Project menu saves the
  1546.                        current settings under the same name as specified
  1547.                        under Save Preferences as, or it will use the default
  1548.                        name.
  1549.  
  1550.                About   This entry will open up a small window giving infor-
  1551.                        mation about KCommodity`s version. Furthermore
  1552.                        you can print out the registration form, which you
  1553.                        might have done already, here.
  1554.  
  1555.  
  1556.  
  1557.   6.2    The Settings window
  1558.  
  1559.  
  1560.   Within  this  window you can turn several functions on and off.  These func-
  1561.   tions  do  not  require  more  specific  input, just on and off.  Now to the
  1562.   gadgets` descriptions:
  1563.  
  1564.  
  1565.  
  1566.   Display clock/mem
  1567.  
  1568.  
  1569.   This  gadget  de-  /  activates the time / memory display.  The display will
  1570.   either  be  shown  within  the  Workbench  titlebar or in a separate window.
  1571.   Where the display should reside can be selected using Display in window.
  1572.  
  1573.  
  1574.  
  1575.   Display in window
  1576.  
  1577.  
  1578.   This  gadget  allows  you to specify the place of the time / memory display.
  1579.   If  Display  in  window  is  active the output will be redirected to a small
  1580.   status  window which can be dragged all over the Workbench screen and may be
  1581.   moved  behind  /  in  front  of  others.  The program remembers the window`s
  1582.   position  so  that it will remain on the same position the next time it will
  1583.   be opened.  Furthermore the position will be written to the Preferences file
  1584.   to have the location available the next time the program is started.
  1585.  
  1586.      If  the  gadget  is  deactivated the display will appear in the rightmost
  1587.   corner of the Workbench titlebar.
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      32
  1594.  
  1595.  
  1596.  
  1597.   Show time
  1598.  
  1599.  
  1600.   Using  this  gadget  you may disable the time display, so that only the date
  1601.   and day displays are visible.
  1602.  
  1603.  
  1604.  
  1605.   Show seconds
  1606.  
  1607.  
  1608.   This  gadget  de-  /  activates  the displaying of seconds within the time /
  1609.   memory  display.   If you have selected the status window to be the location
  1610.   of  the display the window will change it`s width so that the new string can
  1611.   fit into the titlebar.
  1612.  
  1613.  
  1614.  
  1615.   Show date
  1616.  
  1617.  
  1618.   You  have the possibility to add the actual system date to the time / memory
  1619.   display.   The  date  will appear to the left of the actual system time.  As
  1620.   described  in  Show secondz the status window will correct it`s width to fit
  1621.   the needs.
  1622.  
  1623.  
  1624.  
  1625.   American date
  1626.  
  1627.  
  1628.   This  option is only "visible" when Show date is active.  You can choose the
  1629.   display to be shown in either German or American notation.
  1630.  
  1631.  
  1632.      ° German notation DD-MM-YY
  1633.  
  1634.  
  1635.      ° American notation MM-DD-YY
  1636.  
  1637.  
  1638.  
  1639.      DD stands for the day, MM for the month and finally YY for the year.
  1640.  
  1641.      The selected format also effects the format of the environment variables.
  1642.  
  1643.  
  1644.  
  1645.   Date with "."
  1646.  
  1647.  
  1648.   If  you  prefer  "." between the date`s digits you may select this gadget to
  1649.   achieve this effect.
  1650.  
  1651.  
  1652.  
  1653.   Show day
  1654.  
  1655.  
  1656.   Finally  you  can  add  the  actual system day to the time display.  The day
  1657.   string  will  be positioned to the left of the date and of course the status
  1658.   window will be redrawn.
  1659.  
  1660.  
  1661.  
  1662.  
  1663.  
  1664.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      33
  1665.  
  1666.  
  1667.  
  1668.   Short day string
  1669.  
  1670.  
  1671.   If  you believe the day string to be too long you can tell KCommodity not to
  1672.   use  the  full length but to display only the first three chars of the day`s
  1673.   name.   The  abbrievations  take the first three chars of the full name.  Of
  1674.   course the status window will be redrawn.
  1675.  
  1676.  
  1677.  
  1678.   German day
  1679.  
  1680.  
  1681.   For  you German users out there.  You can tell KCommodity to print the days`
  1682.   names  in  German  rather  than  in  English.  All abbrieviations will be in
  1683.   German, too.
  1684.  
  1685.  
  1686.  
  1687.   Auto center
  1688.  
  1689.  
  1690.   If this gadget is selected KCommodity will check every Screen which is about
  1691.   to  be  opened whether it has the full width or not.  If not KCommodity will
  1692.   center  the  Screen  horizontally,  so  that it resides in the middle of the
  1693.   display.
  1694.  
  1695.  
  1696.  
  1697.   AppIcon
  1698.  
  1699.  
  1700.   The  program`s AppIcon may be turned on / off using this gadget, so you have
  1701.   total control over that icon during runtime.
  1702.  
  1703.  
  1704.  
  1705.   Write environment
  1706.  
  1707.  
  1708.   This  gadget  de-  / activates the creation of environment variables for the
  1709.   actual  system  date.   Variables  will  be generated for the day, date, and
  1710.   time.  These variables take the names DAY, DATE, and TIME.  On generation of
  1711.   DATE  KCommodity  will look at the American date and Date with "." settings,
  1712.   so  that the date within the variable is set to German or American notation.
  1713.   German day will also have an effect on the generation of the DAY variable.
  1714.  
  1715.      The  variables  will be deleted if this function is turned off.  The same
  1716.   will be done if you quit KCommodity.
  1717.  
  1718.  
  1719.  
  1720.   WB to front
  1721.  
  1722.  
  1723.   If  this gadget is set, the Workbench screen will be brought to front if you
  1724.   try to open KCommodity`s main window.
  1725.  
  1726.  
  1727.  
  1728.  
  1729.  
  1730.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      34
  1731.  
  1732.  
  1733.  
  1734.   LeftyMouse
  1735.  
  1736.  
  1737.   Lefties  can activate "their" function here.  While the LeftyMouse gadget is
  1738.   set  the  left  and  right mousebuttons will be swapped, that means that you
  1739.   will  have to use the right button to click onto objects and the left button
  1740.   to select a menu entry.
  1741.  
  1742.  
  1743.  
  1744.   Map "Umlauts"
  1745.  
  1746.  
  1747.   With  an selected gadget all Umlauts ä,öand üwill be automatically mapped to
  1748.   their  pendants (ae, oe, ue).  Of course this function works case-sensitive,
  1749.   so  that  KCommodity will generate Ae, Oe, and Ue if one of the keys was hit
  1750.   in  conjunction  with SHIFT.  The `ß' will be mapped, too, so that there may
  1751.   not  be  any  problems anymore in writing German texts not containing German
  1752.   Umlauts.
  1753.  
  1754.  
  1755.  
  1756.   MMB-Shift
  1757.  
  1758.  
  1759.   This  gadget  controls the MMB-Shift feature of KCommodity.  If selected you
  1760.   do  not  have  to hold the SHIFT key anymore to perform a multiselection.  A
  1761.   hit on the middle mousebutton is sufficient.
  1762.  
  1763.  
  1764.  
  1765.   Drive NoClick
  1766.  
  1767.  
  1768.   Using this gadget you may turn on / off the noisy drive-clicking.
  1769.  
  1770.  
  1771.  
  1772.   Show Mouse X/Y
  1773.  
  1774.  
  1775.   If  this  gadget  is selected KCommodity will show the actual mouse position
  1776.   within  time  / memory display page number 0.  This may lead to a higher CPU
  1777.   usage because KCommodity will have to report every mouse movement.
  1778.  
  1779.  
  1780.  
  1781.   6.3    The Miscellaneou window
  1782.  
  1783.  
  1784.   Within  this  window  you  will  find  settings  which require more specific
  1785.   inputs.
  1786.  
  1787.  
  1788.  
  1789.   Key-Click
  1790.  
  1791.  
  1792.   As  mentioned  before KCommodity can emulate a keystroke click.  This gadget
  1793.   is used to de- / activate this feature.
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      35
  1800.  
  1801.  
  1802.  
  1803.   Click volume
  1804.  
  1805.  
  1806.   Using  this  gadget  you can alter the volume for the clicking sound of Key-
  1807.   Click.  Values between 1 and 64 are accepted.  Remember that 1 is the lowest
  1808.   volume and 64 is the highest.
  1809.  
  1810.  
  1811.  
  1812.   ESC Window Close
  1813.  
  1814.  
  1815.   This gadget de- / activates the emulation of the beloved function of good PC
  1816.   programs.   A  hit on the ESC key in conjunction with a qualifier defined by
  1817.   ESC Qualifier will close the window underneith the mouse.  Prerequistits for
  1818.   this function are that the window does not show a requester and that a Close
  1819.   Gadget is tied to the window.
  1820.  
  1821.  
  1822.  
  1823.   ESC Qualifier
  1824.  
  1825.  
  1826.   To the right of this gadget you find the shortcut definition which activates
  1827.   the  ESC  Window Close function.  If you want to change the shortcut, simply
  1828.   hit  on  that  gadget.   A  window will pop up giving you the possibility to
  1829.   change  the  key-combination.   Simply  hit  the  keys  you  want  to use in
  1830.   conjunction  with ESCAPE.  If you click on OK the definition will be in use.
  1831.   Please remember that you have to click underneith the Text Gadget, otherwise
  1832.   the left mousebutton will not be recognized.
  1833.  
  1834.  
  1835.  
  1836.   Full drag
  1837.  
  1838.  
  1839.   This  gadget  controls  the Full-Drag function.  The qualifier defined under
  1840.   Dragging qualifier will not be checked if this gadget is not selected.
  1841.  
  1842.  
  1843.  
  1844.   Dragging qualifier
  1845.  
  1846.  
  1847.   As  with  ESC  Qualifier  you  can  define  the  qualifier for the Full Drag
  1848.   function.    If  you  hit  this  qualifier  in  conjunction  with  the  left
  1849.   mousebutton  you can move a window without having to click onto the window`s
  1850.   titlebar.
  1851.  
  1852.  
  1853.  
  1854.   User Shell
  1855.  
  1856.  
  1857.   You  can  enter  a  command string for the Shell command here.  Just enter a
  1858.   command  with it`s parameter here as if typed into a CLI / SHELL.  Here is a
  1859.   small example:
  1860.  
  1861.                           NewSHELL CON:0/11//200/Shell
  1862.  
  1863.  
  1864.  
  1865.  
  1866.  
  1867.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      36
  1868.  
  1869.  
  1870.  
  1871.      would  start  a  new Shell process.  It`s window would be 200 pixels high
  1872.   and it would be positioned underneith the Workbench`s titlebar.
  1873.  
  1874.  
  1875.  
  1876.   Exploding Windows
  1877.  
  1878.  
  1879.   Using this gadget you can de- / activate the Exploding Windows function.
  1880.  
  1881.  
  1882.  
  1883.   From/To mouse
  1884.  
  1885.  
  1886.   This  gadget  controls  the  focus  of  the Exploding Windows animation.  If
  1887.   selected frames will be drawn from the current mouse position instead of the
  1888.   screens`s center.
  1889.  
  1890.  
  1891.  
  1892.   Explode frames
  1893.  
  1894.  
  1895.   As mentioned you can define the number of frames to be drawn for exploding /
  1896.   imploding  animations  for  an active Exploding Windows function.  Frames in
  1897.   the  means  of a number of rectangles to be drawn until the complete size of
  1898.   the  window  is  reached.   This  gives  users  of  "slower"  computers  the
  1899.   possibility  to  use  the  Exploding  Windows function because they can find
  1900.   values  which do not slow down their machine a lot.  This gadget defines the
  1901.   number  of  frames  to  be drawn when opening a window.  The value can range
  1902.   from 10 to 64 frames.
  1903.  
  1904.  
  1905.  
  1906.   Implode frames
  1907.  
  1908.  
  1909.   As  mentioned above you can select a number of frames here.  This time it is
  1910.   the number of frames to be drawn when closing a window.
  1911.  
  1912.  
  1913.  
  1914.   Size/Move frames
  1915.  
  1916.  
  1917.   As  with the other two Slider Gadgets you can define the number of frames to
  1918.   be drawn for the window`s metamorphosis to it`s new position / size.
  1919.  
  1920.  
  1921.  
  1922.   6.4    The Alarm modes window
  1923.  
  1924.  
  1925.   Here  you  control  KCommodity`s  alarm  function  and how KCommodity should
  1926.   behave when it`s time to wake you up.
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      37
  1933.  
  1934.  
  1935.  
  1936.   Alarm on
  1937.  
  1938.  
  1939.   A  set Alarm on gadget tells KCommodity to check the actual system time.  If
  1940.   the  time  is  equal to the alarm time specified under Alarm time KCommodity
  1941.   will "wake" you up.
  1942.  
  1943.  
  1944.  
  1945.   Every hour
  1946.  
  1947.  
  1948.   If this gadget is selected KCommodity will "wake"you up on every full hour.
  1949.  
  1950.  
  1951.  
  1952.   Show requester
  1953.  
  1954.  
  1955.   Normally,  a small Requester will be shown if KCommodity "wakes" you up.  If
  1956.   you deselect this gadget, this Requester will be gone.
  1957.  
  1958.  
  1959.  
  1960.   Alarm time
  1961.  
  1962.  
  1963.   Using  this  gadget  you  select  the actual alarm time.  The input does not
  1964.   accept seconds however, but I think hour and minutes should suffice.
  1965.  
  1966.  
  1967.  
  1968.   Sound type
  1969.  
  1970.  
  1971.   Here you can select the type of sound to be played on "wake-up".  When using
  1972.   DisplayBeep()  the display will flash and a soft beep will be heard.  If you
  1973.   do  not  like that type of behaviour, simply select IFF Sample.  Now you can
  1974.   select an IFF-8SVX file to be played every alarm.
  1975.  
  1976.  
  1977.  
  1978.   Select sample
  1979.  
  1980.  
  1981.   This  gadget is only available, if you selected IFF Sample under Sound type.
  1982.   If  you  click  on  this  gadget  a  Filerequester  will  pop  up giving the
  1983.   possibility  to select a new sample.  Underneith this gadget the name of the
  1984.   selected sample will be displayed.
  1985.  
  1986.  
  1987.  
  1988.   6.5    The Blanking window
  1989.  
  1990.  
  1991.   Here  you can change settings concerning the blanking routines.  The gadgets
  1992.   are as follows:
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      38
  1999.  
  2000.  
  2001.  
  2002.   Blank mouse on keystroke
  2003.  
  2004.  
  2005.   If  this gadget is active, the mouse will be blanked on every keystroke.  If
  2006.   not, the mouse will stay where it is.
  2007.  
  2008.  
  2009.  
  2010.   Screen time
  2011.  
  2012.  
  2013.   This  Slider Gadget is used to select the time KCommodity should wait before
  2014.   blanking the Screen.  The countdown will always be restarted if the mouse is
  2015.   moved  or  if  a  key  is  pressed.   An  input  of  0  turns off the Screen
  2016.   Blanker/Dimmer.
  2017.  
  2018.  
  2019.  
  2020.   Mouse time
  2021.  
  2022.  
  2023.   As  mentioned  under  Screen time you can enter the amount of seconds before
  2024.   blanking  the  mouse  here.   Again, if you enter 0 the MouseBlanker will be
  2025.   turned off.
  2026.  
  2027.  
  2028.  
  2029.   Blanker Type
  2030.  
  2031.  
  2032.   This gadget is used to determine the type of screen blanking.  If Blanker is
  2033.   shown  the  blanker  acts as intended.  KCommodity will completely blank the
  2034.   screen  after  the  Screen  time  has  elapsed.  If this gadget reads Dimmer
  2035.   KCommodity will dimm the screen with the given Dimm Factor.
  2036.  
  2037.  
  2038.  
  2039.   Dimm Factor
  2040.  
  2041.  
  2042.   This  gadget  is  only  active  if  Blanker Type is set to Dimmer (it is not
  2043.   ghosted).   You  can  now  define  the  factor  for dimming the screen.  The
  2044.   settings can range from 1 to 48 where 1 is the brightest and 48 the darkest.
  2045.   Just look for the factor which suits your needs.  So just find a value which
  2046.   suits  your  needs.  As the dimming is done that way, as it subtracts 1 from
  2047.   each  color  value  until  the factor is exceeded, minor color "changes" may
  2048.   occure.  If you prefer to have the real colors after dimming then just enter
  2049.   a value which is a multiple of 3.
  2050.  
  2051.  
  2052.  
  2053.   6.6    The Cycling window
  2054.  
  2055.  
  2056.   You  can  define  the behaviour of the Screen/Window cycling here.  Further-
  2057.   more key-combinations for this feature may be defined.
  2058.  
  2059.  
  2060.  
  2061.  
  2062.  
  2063.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      39
  2064.  
  2065.  
  2066.  
  2067.   Cycling enabled
  2068.  
  2069.  
  2070.   This gadget controls the state of the "Window / Screen cycling".
  2071.  
  2072.  
  2073.  
  2074.   Front Clicks
  2075.  
  2076.  
  2077.   This  Slider  Gadget determines the number of clicks to occure before a win-
  2078.   dow/screen  to  front is to be executed.  You can choose from 1 to 5 clicks.
  2079.   These clicks have to occure within the Double-Click time.
  2080.  
  2081.  
  2082.  
  2083.   Middle Clicks
  2084.  
  2085.  
  2086.   You  can  define  the  number  of clicks for the middle mousebutton (in con-
  2087.   junction  with the key-combination), which should execute the screen cycling
  2088.   function.
  2089.  
  2090.  
  2091.  
  2092.   Back Clicks
  2093.  
  2094.  
  2095.   As mentioned under Front Clicks, this gadget determines the number of clicks
  2096.   for a window/screen to back.
  2097.  
  2098.  
  2099.  
  2100.   Front Key
  2101.  
  2102.  
  2103.   This  gadget is used to change the key-combination which is to be used for a
  2104.   window/screen  to  front action.  Defining this combination is done the same
  2105.   way as described under ESC Qualifier.
  2106.  
  2107.  
  2108.  
  2109.   Middle Key
  2110.  
  2111.  
  2112.   Selecting this gadget will offer the possibility to change the qualifier for
  2113.   the middle mousebutton which is used to cycle through screens.
  2114.  
  2115.  
  2116.  
  2117.   Back Key
  2118.  
  2119.  
  2120.   As described under Front Key you may redefine the key-combination for moving
  2121.   screens/windows to back.
  2122.  
  2123.  
  2124.  
  2125.   6.7    Display colors
  2126.  
  2127.  
  2128.   If  you  do not like the default colors used by the titlebar / status window
  2129.   display you may change these.
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      40
  2136.  
  2137.  
  2138.  
  2139.   Text front pen
  2140.  
  2141.  
  2142.   This gadget determines the color to be used for normal text foreground.
  2143.  
  2144.  
  2145.  
  2146.   Text back pen
  2147.  
  2148.  
  2149.   Using  this  gadget you may select a different color for the text background
  2150.   within the titlebar / status window.
  2151.  
  2152.  
  2153.  
  2154.   Gauge front pen
  2155.  
  2156.  
  2157.   This gadget selects the color the gauge should be drawn with.
  2158.  
  2159.  
  2160.  
  2161.   Gauge back pen
  2162.  
  2163.  
  2164.   You may define the gauge`s background color using this gadget.
  2165.  
  2166.  
  2167.  
  2168.   6.8    The Mouse window
  2169.  
  2170.  
  2171.   You  can  alter  the  behaviour  of the mouse here and control more settings
  2172.   concerning mouse handling.
  2173.  
  2174.  
  2175.  
  2176.   Window activate
  2177.  
  2178.  
  2179.   An  activated  gadget tells you that the program`s window activation routine
  2180.   is  locked  on  target, that means windows will be activated with the chosen
  2181.   mode.  Therefore Sun mouse selects the mode of activation.
  2182.  
  2183.  
  2184.  
  2185.   Sun mouse
  2186.  
  2187.  
  2188.   This  might  confuse  at  first  sight.  A set Sun mouse gadget implies that
  2189.   window activation is redeemed by the mouse, that means each window you touch
  2190.   with the mousepointer will be activated automatically.
  2191.  
  2192.      If  Sun  mouse  is unset the mouseposition still is relevant but a window
  2193.   will  not be activated if you touch it with the mouse.  The window will only
  2194.   be  activated  if a key is pressed.  So you can move the mouse over a window
  2195.   and start typing.
  2196.  
  2197.      Please  remember  that  the  window  activation  is deactivated by Window
  2198.   activate and not by Sun mouse.
  2199.  
  2200.  
  2201.  
  2202.  
  2203.  
  2204.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      41
  2205.  
  2206.  
  2207.  
  2208.   Mouse accelerate
  2209.  
  2210.  
  2211.   If this gadget is active, KCommodity will accelerate the mousepointer.
  2212.  
  2213.  
  2214.  
  2215.   Acceleration
  2216.  
  2217.  
  2218.   Define the acceleration factor with this slider.  A low value tells KCommod-
  2219.   ity  not  to accelerate too much whilst a higher value will lead to a better
  2220.   acceleration.  Values between 2 and 10 are possible.
  2221.  
  2222.  
  2223.  
  2224.   Threshold
  2225.  
  2226.  
  2227.   You  can  set a threshold for the acceleration here.  A low value means that
  2228.   the  mouse  is accelerated even if you move the pointer over short distances
  2229.   at  a  slow speed.  If you define a higher value you can move the mouse over
  2230.   short  distances without the mouse beeing accelerated.  Again you can choose
  2231.   a value between 2 and 10.
  2232.  
  2233.  
  2234.  
  2235.   Hold X qualifier
  2236.  
  2237.  
  2238.   As  mentioned  earlier  you  can lock mouse movements.  To the right of this
  2239.   gadget  you  see  the  qualifier  to  be used to lock the X-movements of the
  2240.   mousepointer.   Defining  this  qualifier  is done the same way as described
  2241.   under ESC Qualifier.
  2242.  
  2243.  
  2244.  
  2245.   Hold Y qualifier
  2246.  
  2247.  
  2248.   Same  as  Hold  X  qualifier  with  one  exception, that this qualifier will
  2249.   prevent the mouse from moving in Y-direction.
  2250.  
  2251.  
  2252.  
  2253.   6.9    The HotKeys window
  2254.  
  2255.  
  2256.   You  can  redefine  all  HotKeys  used  by KCommodity here.  If you change a
  2257.   HotKey  and  the  description  is  not  correct, KCommodity will restore the
  2258.   previously  used  HotKey.   There  is  a list of descriptions for defining a
  2259.   HotKey some way down that document.
  2260.  
  2261.      There  is  a  ListView Gadget within the window which shows all available
  2262.   HotKeys  by  name.   If  you  click  on a HotKey`s name it will be displayed
  2263.   within  a box underneith the gadget.  The HotKey`s definition will be copied
  2264.   to the String Gadget below the box.  You can now change the HotKey`s
  2265.  
  2266.  
  2267.  
  2268.  
  2269.  
  2270.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      42
  2271.  
  2272.  
  2273.  
  2274.   definition  here.  Wrong definitions will be ignored and the previous HotKey
  2275.   will be restored.
  2276.  
  2277.      Here is a list of available HotKeys and their meaning.
  2278.  
  2279.  
  2280.  
  2281.   CX PopKey
  2282.  
  2283.  
  2284.   When  describing  the  ToolTypes  I  mentioned  a  HotKey  for opening KCom-
  2285.   modity`s  main  window.  You can change this HotKey here.  Each time you hit
  2286.   this  HotKey  the  main window will be opened or brought to front.  If WB to
  2287.   front  is active the Workbench will be brought to front before the window is
  2288.   opened / popped to front.
  2289.  
  2290.  
  2291.  
  2292.   Settings
  2293.  
  2294.  
  2295.   This HotKey is used to open the Settings window.
  2296.  
  2297.  
  2298.  
  2299.   Blanking
  2300.  
  2301.  
  2302.   If you want to open the Blanking window, this HotKey may be used.
  2303.  
  2304.  
  2305.  
  2306.   Mouse
  2307.  
  2308.  
  2309.   To change settings within the Mouse window, this HotKey may be used.
  2310.  
  2311.  
  2312.  
  2313.   Function keys
  2314.  
  2315.  
  2316.   If  you  want to make quick changes within the Function keys window, you can
  2317.   open that window using this HotKey.
  2318.  
  2319.  
  2320.  
  2321.   Bill
  2322.  
  2323.  
  2324.   You can change the HotKey for opening the Bill window here.  If you hit this
  2325.   HotKey while the window is open, KCommodity will close the window again.
  2326.  
  2327.  
  2328.  
  2329.   Miscellaneous
  2330.  
  2331.  
  2332.   As  the  name  might  tell,  this  HotKey  is used to open the Miscellaneous
  2333.   window.
  2334.  
  2335.  
  2336.  
  2337.  
  2338.  
  2339.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      43
  2340.  
  2341.  
  2342.  
  2343.   Cycling
  2344.  
  2345.  
  2346.   The Cycling window may be opened using this HotKey.
  2347.  
  2348.  
  2349.  
  2350.   HotKeys
  2351.  
  2352.  
  2353.   This one is used for opening the HotKeys window.
  2354.  
  2355.  
  2356.  
  2357.   Formatter
  2358.  
  2359.  
  2360.   If you want to format a disk, simply hit this HotKey and KCommodity`s format
  2361.   control panel will pop up.  See The Formatter window for more information.
  2362.  
  2363.  
  2364.  
  2365.   Bill Preferences
  2366.  
  2367.  
  2368.   Again  you  can  change  a  HotKey for opening a window.  This time it`s the
  2369.   HotKey for the Bill Preferences window.
  2370.  
  2371.  
  2372.  
  2373.   Alarm modes
  2374.  
  2375.  
  2376.   To  make  changes  within the Alarm modes window, this HotKey may be used to
  2377.   pop it up.
  2378.  
  2379.  
  2380.  
  2381.   Display colors
  2382.  
  2383.  
  2384.   If you still do not like the colors used for the display pages, you may open
  2385.   the Display colors window.
  2386.  
  2387.  
  2388.  
  2389.   Page
  2390.  
  2391.  
  2392.   This  HotKey  is  used  to change between the different display modes of the
  2393.   time / memory display.  If you hit the HotKey the display will switch to the
  2394.   next page.  If the last page is already beeing displayed the first page will
  2395.   become the active one.  Here is a list of pages you can flip through:
  2396.  
  2397.  
  2398.      1.Time display proably with mouse coordinates.
  2399.  
  2400.  
  2401.      2.Memory display showing free Chip / Fast memory.
  2402.  
  2403.  
  2404.      3.Memory display numerically showing total free memory.
  2405.  
  2406.  
  2407.  
  2408.  
  2409.  
  2410.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      44
  2411.  
  2412.  
  2413.  
  2414.      4.Time display in combination with memory display.
  2415.  
  2416.  
  2417.      5.Memory display showing total free memory as a gauge.
  2418.  
  2419.  
  2420.      6.Online ime.
  2421.  
  2422.  
  2423.      All  pages  will  either be shown within the Workbench titlebar or within
  2424.   the small status window (Depending on Display in window).
  2425.  
  2426.  
  2427.  
  2428.   Open Shell
  2429.  
  2430.  
  2431.   As  mentioned  above  KCommodity can open a Shell by a hit on a HotKey.  You
  2432.   can define this HotKey here.
  2433.  
  2434.  
  2435.  
  2436.   Map "Umlauts"
  2437.  
  2438.  
  2439.   This HotKey was implemented to de- / activate the Map "Umlauts" function, so
  2440.   you  do  not  have to get to the main window each time you want to turn this
  2441.   function on and off.
  2442.  
  2443.  
  2444.  
  2445.   Snap memory
  2446.  
  2447.  
  2448.   You  can  define  the HotKey for the "Snap memory" function here.  The first
  2449.   time  you  hit  the  HotKey  the  screen  will  flash.  This signalizes that
  2450.   KCommodity  made  a  snapshot of the currently available memory.  If you hit
  2451.   the  HotKey  a  second  time  the  time  /  memory  display will change to a
  2452.   different  page  showing  how  much memory was freed / got lost.  A possible
  2453.   display could be:
  2454.  
  2455.                           Snapped  C:    0  F:      0
  2456.  
  2457.      This  display  tells  you  that  neither  chip memory nor fast memory was
  2458.   occupied  / freed during the time between the two calls of the "Snap memory"
  2459.   function.   If  memory got lost the values shown will be negative, otherwise
  2460.   they will be positive.
  2461.  
  2462.      This  display  will  only  show up if the "Snap memory" function is used.
  2463.   The Page HotKey can not be used to switch to that page.
  2464.      To get back to the normal display just hit the Page HotKey.
  2465.  
  2466.  
  2467.  
  2468.   Immediate Blank
  2469.  
  2470.  
  2471.   This  HotKey is used for an immediate Blank/Dimm, if you do not want to wait
  2472.   for the timeout to occure.
  2473.  
  2474.  
  2475.  
  2476.  
  2477.  
  2478.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      45
  2479.  
  2480.  
  2481.  
  2482.   Display dump
  2483.  
  2484.  
  2485.   Having  hit  this HotKey, KCommodity will look for the window underneith the
  2486.   mouse  pointer  and the active screen.  These two are treated as sources for
  2487.   the display dump.  The Graphics dump window will pop up giving access to all
  2488.   the dumping possibilities.
  2489.  
  2490.  
  2491.  
  2492.   Lock windows
  2493.  
  2494.  
  2495.   This HotKey will open up the Lock windows window.
  2496.  
  2497.  
  2498.  
  2499.   Center Screen
  2500.  
  2501.  
  2502.   Using this HotKey you can recenter a Screen.
  2503.  
  2504.  
  2505.  
  2506.   6.9.1   Description for defining a HotKey
  2507.  
  2508.  
  2509.   To  ease  the  definition of a HotKey here is a list of key-descriptions the
  2510.   system  "knows".   You  can have a look at this list if you hit the HELP key
  2511.   within the HotKeys window.
  2512.  
  2513.      Here is a list for qualifiers.
  2514.  
  2515.  
  2516.                       ALT   Any Alt key.
  2517.  
  2518.                      RALT   Only the right Alt key.
  2519.  
  2520.                      LALT   Only the left Alt key.
  2521.  
  2522.                     SHIFT   Either Shift key.
  2523.  
  2524.                    RSHIFT   The right Shift key.
  2525.  
  2526.                    LSHIFT   Only the left Shift Key.
  2527.  
  2528.                  CAPSLOCK   Capslock must be pressed.
  2529.  
  2530.                  LCOMMAND   Left Amiga key.
  2531.  
  2532.                  RCOMMAND   Right Amiga key.
  2533.  
  2534.                   CONTROL   Control Key.
  2535.  
  2536.                NUMERICPAD   Keys of the Numeric Keypad are accepted.
  2537.  
  2538.                   RBUTTON   Right mousebutton.
  2539.  
  2540.                 MIDBUTTON   Middle mousebutton.
  2541.  
  2542.                LEFTBUTTON   Left mousebutton.
  2543.  
  2544.                  NEWPREFS   Preferences have been changed. Maybe a new
  2545.                             font was selected.
  2546.  
  2547.  
  2548.  
  2549.  
  2550.  
  2551.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      46
  2552.  
  2553.  
  2554.  
  2555.               DISKREMOVED   A disk was removed from a drive.
  2556.  
  2557.              DISKINSERTED   A disk was inserted into a drive.
  2558.  
  2559.  
  2560.      These are the qualifiers you can use in almost every combination.  Now we
  2561.   come to the descriptions of "normal" keys.
  2562.  
  2563.  
  2564.               A - Z, 0 - 9, etc.pp. Normal keys, as you see them on the
  2565.                                     keyboard.
  2566.  
  2567.                            F1 - F10 The ten function keys.
  2568.  
  2569.               UP, DOWN, LEFT, RIGHT The cursor keys up, down, left, and
  2570.                                     right.
  2571.  
  2572.                                HELP The Help key.
  2573.  
  2574.                                 DEL Delete key (beside HELP).
  2575.  
  2576.                           BACKSPACE Backspace key.
  2577.  
  2578.                              RETURN Return key.
  2579.  
  2580.                               ENTER Enter on Numeric Keyboard (only, if
  2581.                                     NUMERICPAD was specified).
  2582.  
  2583.                                 ESC Escape key.
  2584.  
  2585.                               SPACE Space.
  2586.  
  2587.                               COMMA A comma.
  2588.  
  2589.                            UPSTROKE The apostroph (to the left of the 1).
  2590.  
  2591.  
  2592.      You can use as many qualifiers as you wish, but only one key description.
  2593.   This is the syntax for a HotKey definition:
  2594.  
  2595.                         [QUALIFIER [QUALIFIER ...]] KEY
  2596.  
  2597.      As  you  can  see  the qualifiers can be totally left out, but in how far
  2598.   this is usefull depends on you.
  2599.  
  2600.  
  2601.  
  2602.   6.10     The Display dump window
  2603.  
  2604.  
  2605.   This  is  one of the most complex windows KCommodity has to offer.  You have
  2606.   full  control over the dump and the areas which are to be printed.  When the
  2607.   Window  is opened, KCommodity will search for two sources.  The first one is
  2608.   the  window underneith the mouse pointer the other one is the active screen.
  2609.   These  sources  may  be  used  to  specify  the  area  you  want to dump.  A
  2610.   description of the gadgets available should clear the thing:
  2611.  
  2612.  
  2613.  
  2614.  
  2615.  
  2616.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      47
  2617.  
  2618.  
  2619.  
  2620.   Aspect
  2621.  
  2622.  
  2623.   You  can  select  the  dump`s  aspect.   The  area  will  either  be printed
  2624.   Horizontal, that means horizontally, or Vertical, say vertically, rotated by
  2625.   90 degrees.
  2626.  
  2627.  
  2628.  
  2629.   Shade
  2630.  
  2631.  
  2632.   You  can select the dump-quality, better the creation of shadows.  Following
  2633.   possibilities are offered.
  2634.  
  2635.  
  2636.      ° Black & White
  2637.  
  2638.        The dump will simply be black/white.
  2639.  
  2640.  
  2641.      ° Grey Scale 1
  2642.  
  2643.        Grey scales will be generated for the dump.
  2644.  
  2645.  
  2646.      ° Grey Scale 2
  2647.  
  2648.        Like Grey Scale 1, but this one is preferable for high-resolution dis-
  2649.        plays.
  2650.  
  2651.  
  2652.      ° Color
  2653.  
  2654.        If your printer supports color dumps, you can tell KCommodity to
  2655.        dump with colors.
  2656.  
  2657.  
  2658.  
  2659.   Dithering
  2660.  
  2661.  
  2662.   This  gadget  controls  the  dithering features, so you can control the dump
  2663.   quality.  These are the possibilities:
  2664.  
  2665.  
  2666.      ° Ordered
  2667.  
  2668.        The dump dithering will be ordered.
  2669.  
  2670.  
  2671.      ° Halftone
  2672.  
  2673.        Dithering will be generated using the halftone method.
  2674.  
  2675.  
  2676.      ° Floyd-Steinberg
  2677.  
  2678.        One of the best picture manipulation algorythms around. This option
  2679.        uses a bit more time to produce the dump, but it will give best
  2680.        results.
  2681.  
  2682.  
  2683.  
  2684.  
  2685.  
  2686.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      48
  2687.  
  2688.  
  2689.  
  2690.   Scaling
  2691.  
  2692.  
  2693.   You  have  several  different options for scaling the output, so that you do
  2694.   not  waist  precious  space on the paper.  You can choose from the following
  2695.   scalings:
  2696.  
  2697.  
  2698.      ° Full Page
  2699.  
  2700.        The whole paper will be filled.
  2701.  
  2702.  
  2703.      ° inch x inch
  2704.  
  2705.        The values of Size will be treated as inches.
  2706.  
  2707.  
  2708.      ° mm x mm
  2709.  
  2710.        KCommodity asumes the Size values to be milimeters.
  2711.  
  2712.  
  2713.      ° cm x cm
  2714.  
  2715.        Now Size values are treated as centimeters.
  2716.  
  2717.  
  2718.      ° Fraction
  2719.  
  2720.        Using this setting, you can control how much percentage of the paper
  2721.        should be filled. The Size values are treated as these percentages.
  2722.  
  2723.  
  2724.  
  2725.   Density
  2726.  
  2727.  
  2728.   This  gadget  controls the density of the dump.  The higher the density, the
  2729.   blacker the dark areas of the dump.
  2730.  
  2731.  
  2732.  
  2733.   Threshold
  2734.  
  2735.  
  2736.   You  can define the threshold for black/white areas.  The higher the thresh-
  2737.   old, the darker the dump.
  2738.  
  2739.  
  2740.  
  2741.   Image
  2742.  
  2743.  
  2744.   Controls  the  image to be created.  It can either be Positive or a Negative
  2745.   image.
  2746.  
  2747.  
  2748.  
  2749.   Red, Green, Blue
  2750.  
  2751.  
  2752.   When  Color is selected within the Shade Gadget, these gadgets are available
  2753.   to control color correction.
  2754.  
  2755.  
  2756.  
  2757.  
  2758.  
  2759.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      49
  2760.  
  2761.  
  2762.  
  2763.   Size
  2764.  
  2765.  
  2766.   These  gadgets  control  the  scaling  sizes  for  the dump.  Take a look at
  2767.   Scaling  to  see how these values are interpreted.  These values are ignored
  2768.   if you select Full Page.
  2769.  
  2770.  
  2771.  
  2772.   Centered
  2773.  
  2774.  
  2775.   This gadget tells KCommodity to horizontally center the image.
  2776.  
  2777.  
  2778.  
  2779.   Smoothing
  2780.  
  2781.  
  2782.   This  gadget  is unavailable, when using Floyd-Steinberg.  Otherwise you can
  2783.   tell KCommodity to smothen sharp edges of the output.
  2784.  
  2785.  
  2786.  
  2787.   FormFeed
  2788.  
  2789.  
  2790.   When finished dumping, KCommodity will perform a FormFeed.
  2791.  
  2792.  
  2793.  
  2794.   Keep Aspect
  2795.  
  2796.  
  2797.   If  you  manually  changed the scaling, this gadget tells KCommodity to keep
  2798.   the picture`s original aspect/scaling.
  2799.  
  2800.  
  2801.  
  2802.   Graphic
  2803.  
  2804.  
  2805.   This  gadget  controls the area to be dumped from.  If Complete is selected,
  2806.   the  whole source will be dumped, but if you select Area then you can define
  2807.   an area which should be dumped.
  2808.  
  2809.  
  2810.  
  2811.   X, Y, W, H
  2812.  
  2813.  
  2814.   These  Integer  Gadgets control the area to be dumped.  They are unavailable
  2815.   if you select Complete in the Graphic gadget.
  2816.  
  2817.  
  2818.  
  2819.   Source
  2820.  
  2821.  
  2822.   As  mentioned  earlier  KCommodity  searches  for two sources.  Here you can
  2823.   define  which  of the two should be used as source for the dump.  KCommodity
  2824.   tries to show the source`s name to the right of this gadget.
  2825.  
  2826.  
  2827.  
  2828.  
  2829.  
  2830.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      50
  2831.  
  2832.  
  2833.  
  2834.   Reselect Source
  2835.  
  2836.  
  2837.   Clicking  on  this  gadget will change the window`s titlebar, telling you to
  2838.   select a new source and hit the HotKey again.  So just move the mouse over a
  2839.   new  window/screen  you  wish  to  dump  and  hit the HotKey for opening the
  2840.   Display  dump  window.   KCommodity  will fetch data for the new sources and
  2841.   rearrange it`s display.  Trying to dump the Dump-Window will not work, since
  2842.   it  will  be  closed  before  the  dump (that`s not the only reason :-)) and
  2843.   KCommodity will respond with a Requester :  "Sorry, but I can`t dump myself.
  2844.   Please select new source.".
  2845.  
  2846.  
  2847.  
  2848.   Define Area
  2849.  
  2850.  
  2851.   Having  selected  Area  you may now define the dump-area by using the mouse.
  2852.   The selected source will pop to front and a rectangle will be drawn from the
  2853.   upper  left  corner  to  the  current  mouse  position.   To set a new start
  2854.   position  for the rectangle just click the left mousebutton.  To quit simply
  2855.   hit  the  right  mousebutton.  The new values will be copied to KCommodity`s
  2856.   Integer Gadgets.
  2857.  
  2858.  
  2859.  
  2860.   Dump
  2861.  
  2862.  
  2863.   This  gadget  will  start the dump.  KCommodity will first check your inputs
  2864.   before starting the dump.  If any errors are encountered KCommodity will pop
  2865.   up a Requester "Please check your inputs".  Otherwise your printer will soon
  2866.   start  to  dump.   To cancel the dump, simply hit the HotKey for opening the
  2867.   Display  dump  window.   If  the  selected printer does not support graphics
  2868.   dumps KCommodity will inform you.
  2869.  
  2870.  
  2871.  
  2872.   Cancel
  2873.  
  2874.  
  2875.   Guess what ? It aborts the dump.
  2876.  
  2877.  
  2878.  
  2879.   6.11     The Funktion Keys window
  2880.  
  2881.  
  2882.   The ten Funktion keys may be mapped with four strings.  These strings can be
  2883.   inserted   wherever   character   inputs  are  appropriate.   These  may  be
  2884.   String/Integer Gadgets, Shell windows, say everthing you can type in.  There
  2885.   are three special strings which will execute special functions.  I will give
  2886.   you these strings here (so that nobody asks me some day):
  2887.  
  2888.  
  2889.  
  2890.  
  2891.  
  2892.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      51
  2893.  
  2894.  
  2895.  
  2896.      ° MINWIN
  2897.  
  2898.        The window underneith the mouse pointer will be changed to minimal
  2899.        size and moved to the upper left corner of the screen.
  2900.  
  2901.  
  2902.      ° MAXWIN
  2903.  
  2904.        The window underneith the mouse pointer will be brought to maxi-
  2905.        mum size and moved to the upper left corner of the screen.
  2906.  
  2907.  
  2908.      ° ZIPWIN
  2909.  
  2910.        Windows equiped with a Zoom Gadget can be handeled using this
  2911.        command. The window underneith the mouse pointer will zip to it`s
  2912.        alternative size/position.
  2913.  
  2914.  
  2915.  
  2916.   F1 - F10
  2917.  
  2918.  
  2919.   Just  enter  the  strings  you  want  KCommodity to "type" for you.  Special
  2920.   characters and commands are supported.  These are :
  2921.  
  2922.  
  2923.      ° ANSI - Any ANSI sequences may be entered.
  2924.  
  2925.  
  2926.      ° Special codes starting with n
  2927.  
  2928.  
  2929.          1. \n - Return
  2930.  
  2931.          2. \r - Return
  2932.  
  2933.          3. \t - TAB
  2934.  
  2935.          4. \n - \-Code
  2936.  
  2937.  
  2938.      ° Keydefinition between <> An example:  abc<alt f1>\nHello.
  2939.        This would insert the definition of ALT + F1 between abc and \n.
  2940.        As you can see these definitions are the same as presented in Descrip-
  2941.        tion for defining a HotKey.
  2942.  
  2943.  
  2944.  
  2945.   Qualifier
  2946.  
  2947.  
  2948.   This gadget selects a new function key bank.  Say it selects a new qualifier
  2949.   to  be  pressed  to  insert  a  specific  string.   These are the qualifiers
  2950.   available:
  2951.  
  2952.  
  2953.      ° NONE No key.
  2954.  
  2955.  
  2956.      ° SHIFT Either SHIFT key.
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      52
  2963.  
  2964.  
  2965.  
  2966.      ° ALT Either ALT key.
  2967.  
  2968.  
  2969.      ° CONTROL CONTROL key.
  2970.  
  2971.  
  2972.  
  2973.   Active
  2974.  
  2975.  
  2976.   You  can  tell  KCommodity  not  to  watch the function keys anymore by dis-
  2977.   abling  this  gadget,  so  that  the  function keys are transparent to other
  2978.   applications.
  2979.  
  2980.  
  2981.  
  2982.   Ok
  2983.  
  2984.  
  2985.   Clicking onto this gadget will copy your settings to the internal buffer, so
  2986.   the new strings are available only after you clicked Ok.
  2987.  
  2988.  
  2989.  
  2990.   Cancel
  2991.  
  2992.  
  2993.   Aborts the definition of function keys.  All changes since the pop up of the
  2994.   window will be lost.
  2995.  
  2996.  
  2997.  
  2998.   6.12     The Formatter window
  2999.  
  3000.  
  3001.   As mentioned above KCommodity may check any inserted Disks, whether they are
  3002.   formated,  or not.  If you insert an unformated disk KCommodity will ask you
  3003.   whether  to  format  the  disk  or not.  If so, this window will pop up.  Of
  3004.   course  you can open that window manually, so that you may format a disk "by
  3005.   hand".   The  window  was  designed  to cover all switches for the Workbench
  3006.   Formatter  and  the  Formatter  made  by Olaf "Olsen" Barthel.  To see which
  3007.   switches  are  known  to the two Formatters take a look at the descriptions.
  3008.   Please  remember  that  KCommodity  assumes  that  the  Formatter resides in
  3009.   SYS:SYSTEM/.   So  make  sure  that  you  keep  the  Formatter  within  this
  3010.   directory.
  3011.  
  3012.  
  3013.  
  3014.   Drive
  3015.  
  3016.  
  3017.   You  may  select  a new drive to format a disk in.  If the window was opened
  3018.   automatically  the  correct  drive will already be selected.  When launched,
  3019.   KCommodity  will check for existing drives, so you can control all connected
  3020.   floppies.
  3021.  
  3022.  
  3023.  
  3024.  
  3025.  
  3026.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      53
  3027.  
  3028.  
  3029.  
  3030.   Label
  3031.  
  3032.  
  3033.   Specifies the label for the Disk.
  3034.  
  3035.  
  3036.  
  3037.   Trashcan
  3038.  
  3039.  
  3040.   You  can  tell  KCommodity not to create the Trashcan on the newly formatted
  3041.   disk.  If this gadget is deselected, the disk will stay clean.  This flag is
  3042.   supported by both of the Formatters.
  3043.  
  3044.  
  3045.  
  3046.   Quick
  3047.  
  3048.  
  3049.   If  the disk inserted has already been formatted, but you want to get rid of
  3050.   files  on  that  disk, you may select this gadget so that the disk ist wiped
  3051.   quickly.   Only  important  blocks  will be formatted then.  Both Formatters
  3052.   support this flag.
  3053.  
  3054.  
  3055.  
  3056.   FFS
  3057.  
  3058.  
  3059.   If you want to take advantage of the new "FastFileSystem" then click on this
  3060.   gadget.   Otherwise  the  disk  will be formatted using the "OldFileSystem".
  3061.   Supported by both of the Formatters.
  3062.  
  3063.  
  3064.  
  3065.   No Verify
  3066.  
  3067.  
  3068.   If  it takes too long to format a disk using Verify, then select this gadget
  3069.   to  disable  this  feature.   This  flag  is  only  supported  by  'Olsen`s'
  3070.   Formatter.
  3071.  
  3072.  
  3073.  
  3074.   Install
  3075.  
  3076.  
  3077.   BootDisks have to be installed in order to boot from these disks.  This flag
  3078.   tells the 'Olsen'-Formatter to install the disk after the format.
  3079.  
  3080.  
  3081.  
  3082.   Eject
  3083.  
  3084.  
  3085.   Some  modern  disk drives support the Eject-Command.  This command tells the
  3086.   drive  to automatically eject the disk.  The 'Olsen'-Formatter supports this
  3087.   feature and it will send the Eject-Command to the drive after the format.
  3088.  
  3089.  
  3090.  
  3091.  
  3092.  
  3093.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      54
  3094.  
  3095.  
  3096.  
  3097.   Watch Disks
  3098.  
  3099.  
  3100.   Tells KCommodity to watch and check every disk inserted.  If you do not like
  3101.   this feature, simple deactivate this gadget.
  3102.  
  3103.  
  3104.  
  3105.   Ok
  3106.  
  3107.  
  3108.   Clicking  on  this  gadget  will start the Formatter in it`s own Shell.  The
  3109.   only  misbehaviour  of  Olaf  Barthel`s Formatter is, that it still wants to
  3110.   have  a  RETURN before starting.  The Workbench Formatter immediatly gets to
  3111.   work.   The  format will run asynchronously, so that you can still work with
  3112.   KCommodity.
  3113.  
  3114.  
  3115.  
  3116.   Cancel
  3117.  
  3118.  
  3119.   Aborts the format.
  3120.  
  3121.  
  3122.  
  3123.   6.13     The Lock windows window
  3124.  
  3125.  
  3126.   This  window  is  used  to  pass  more  information to the window activator.
  3127.   Besides  System  Requesters  (like AutoRequest() and EasyRequest()), you can
  3128.   define  windows  which  should  not  be deactivated by KCommodity, no matter
  3129.   where  the  mouse  is  located  at  or  which  type  of window activation is
  3130.   selected.   Unfortunately  the  only  possibility to identify a window is to
  3131.   check  it`s  name, so windows which do not have a titlebar / name can not be
  3132.   used in conjunction with this feature.
  3133.  
  3134.  
  3135.  
  3136.   Window list
  3137.  
  3138.  
  3139.   Here  you  find  all  the  names of the currently selected windows.  You can
  3140.   scroll through this list, to change an extisting entry.
  3141.  
  3142.  
  3143.  
  3144.   Window name
  3145.  
  3146.  
  3147.   You  can  enter  new  window  names  or  change  existing entries here.  DOS
  3148.   Wildcards  are  supported  as well, so constructs like the following one are
  3149.   supported  :   #?Shell#?.  This entry tells KCommodity not to deactivate any
  3150.   window  which  has  a  substring  called  Shell.  Have a look at your system
  3151.   manual to get to know the wildcards supported by the OS.
  3152.  
  3153.  
  3154.  
  3155.  
  3156.  
  3157.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      55
  3158.  
  3159.  
  3160.  
  3161.   Add window
  3162.  
  3163.  
  3164.   Guess what ?  This gadget will generate a new entry which can be edited
  3165.   now.
  3166.  
  3167.  
  3168.  
  3169.   Select window
  3170.  
  3171.  
  3172.   If  you are too lazy to write down the window`s name you can use this gadget
  3173.   to  select a window with your mouse.  Simply click on the window you wish to
  3174.   lock  and the window`s name will be copied to the String Gadget.  If you try
  3175.   to select a window which is not equiped with a title, KCommodity will pop up
  3176.   the following Requester :  "Sorry, this window can not be identified by it`s
  3177.   title.   I  can`t handle something like that.".  The program will not accept
  3178.   such a window.
  3179.  
  3180.  
  3181.  
  3182.   Delete window
  3183.  
  3184.  
  3185.   Will remove an entry from the list of windows.
  3186.  
  3187.  
  3188.  
  3189.   6.14     The Bill window
  3190.  
  3191.  
  3192.   This  window  gives you information about the actual / past phone call.  The
  3193.   actual system time (Time), the online time (Online), and the costs arising /
  3194.   arisen from a call (Cost), will be shown.  Underneith there are five gadgets
  3195.   you  can  select  the time zone and tariff with.  If you change the settings
  3196.   during  a  phone call KCommodity will automatically recalculate the costs so
  3197.   that the program always works with the correct values and stores them to the
  3198.   log file.  Underneith these gadgets there is another display box showing the
  3199.   costs for one hour for the given time zone and tariff.  At the bottom border
  3200.   of  the  window there is another gadget called Log call.  If it is activated
  3201.   data  about the current phone call will be written to the log file after the
  3202.   modem  hung up.  If the gadget is deselected this data will not be stored to
  3203.   the  file.   This  data  will  be used by Display total sum to calculate the
  3204.   total  costs  for  all  your  phone  calls.  This gadget might be usefull to
  3205.   filter out some calls, say if you have been called by another person.
  3206.  
  3207.      This  window  is  equipped  with  a Zoom Gadget.  Using this gadget it is
  3208.   possible  to easily switch between two sizes for the window, so that it does
  3209.   not  use  too  much  space  on  the  Workbench  (or the Public Screen).  The
  3210.   window`s  position  (normal  sized  or  "zoomed")  will  be  written  to the
  3211.   Preferences file.
  3212.  
  3213.  
  3214.  
  3215.  
  3216.  
  3217.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      56
  3218.  
  3219.  
  3220.  
  3221.   If the window is zoomed (small), the window`s title bar will show the online
  3222.   time,  costs,  timezone,  and tariff, so that you always have an overview of
  3223.   data.
  3224.  
  3225.  
  3226.  
  3227.   6.15     The Preferences window
  3228.  
  3229.  
  3230.   Within  this  window  all settings concerning the telephone bill calculating
  3231.   can  be  altered.   You  can  set  the  time for a unit of three time zones,
  3232.   managed by KCommodity, for normal and cheap tarrifs, here.
  3233.      Let`s  come to the description of the gadgets.  Open up the window either
  3234.   by using the gadget within the main window or the HotKey.
  3235.  
  3236.  
  3237.  
  3238.   Normal Time/Unit 1-3
  3239.  
  3240.  
  3241.   The  gadgets  with  these  names  are  used  to enter the times for one unit
  3242.   concerning  the  normal  tariff.  The numbering from 1 to 3 is for the three
  3243.   available  time  zones.   Within these gadgets only numerical inputs are al-
  3244.   lowed.  Negative inputs will lead to a restore of the previously used value.
  3245.   The program believes these values to be seconds, that means you will have to
  3246.   calculate the correct values to enter minutes.
  3247.  
  3248.  
  3249.  
  3250.   Cheap Time/Unit 1-3
  3251.  
  3252.  
  3253.   These gadgets almost have the same meaning as the ones mentioned above.  The
  3254.   only  difference  is that the times entered are for the cheap tariffs of the
  3255.   three time zones.
  3256.  
  3257.  
  3258.  
  3259.                             An example for an input
  3260.             Normal time / unit 1: 360 Means 6 minutes for one unit.
  3261.             Cheap time / unit 1: 720 Means 12 minutes for one unit.
  3262.  
  3263.  
  3264.  
  3265.      The default times correspond to these valid in Germany.
  3266.  
  3267.  
  3268.  
  3269.   Costs per unit
  3270.  
  3271.  
  3272.   This  gadget  only  accepts  numerical inputs, too.  Enter the costs for one
  3273.   unit.   These inputs are made in cents, so that means that an input of 23 is
  3274.   interpreted  as 23 Pfennige (cents).  Negative values will lead to a restore
  3275.   of the previously used value, too.
  3276.  
  3277.  
  3278.  
  3279.  
  3280.  
  3281.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      57
  3282.  
  3283.  
  3284.  
  3285.   Start normal / Start cheap
  3286.  
  3287.  
  3288.   These  gadgets  are  used  to determine the start times for normal and cheap
  3289.   tariffs.  KCommodity will check the system time and alter the tariff accord-
  3290.   ingly.   Start  normal  is  used to set the start time for normal tariff and
  3291.   Start cheap is used for cheap tariff.
  3292.  
  3293.  
  3294.  
  3295.   PopUp Bill window
  3296.  
  3297.  
  3298.   Using  this CheckBox Gadget you can determine whether KCommodity should open
  3299.   the  Bill  window automatically whenever it recognizes a Carrier Detect.  If
  3300.   the  Carrier is gone (hanging up the modem) KCommodity will close the window
  3301.   again.   If  the  window was already present on a Carrier Detect the program
  3302.   will not close the window when you hang up.
  3303.  
  3304.  
  3305.  
  3306.   Clear log
  3307.  
  3308.  
  3309.   Selecting  this  gadget  the  program  will  clear the log file with all the
  3310.   information about the past calls.
  3311.  
  3312.  
  3313.  
  3314.   Display total sum
  3315.  
  3316.  
  3317.   Attention,  this  gadget  could  get  dangerous :-) When you click onto this
  3318.   gadget  a  Requester will be opened asking where to put the listing to.  You
  3319.   can  choose  from a file or a window.  If you selected window, a window will
  3320.   be  opened  showing information about the calls you`ve made with your modem.
  3321.   After all entries for one day have been listed KCommodity will print out the
  3322.   sum  for  that  day.   At  the end of the list the program will give you the
  3323.   total  sum  for  all  calls  made.   This  is also done when redirecting the
  3324.   listing to a file.
  3325.  
  3326.  
  3327.  
  3328.   Open Bill on
  3329.  
  3330.  
  3331.   You can enter a list of Public Screen names here, on which KCommodity should
  3332.   open the Bill window on.  The names are seperated by semikolons ";".  Please
  3333.   remember  that  KCommodity  tries  to  open  the  window on the first screen
  3334.   available,  that  means  that if the first screen of the list is present the
  3335.   window would never be opened on the second screen.  An example:
  3336.  
  3337.                                 TERM;PowerPacker
  3338.  
  3339.  
  3340.  
  3341.  
  3342.  
  3343.   CHAPTER 6.  USAGE WITHIN THE WINDOWS                                      58
  3344.  
  3345.  
  3346.  
  3347.      KCommodity  would  try  to  open  the  window on Term`s1 screen.  If this
  3348.   screen  is  not  available  the program will then try to find PowerPacker`s2
  3349.   screen to open the window on.
  3350.  
  3351.      Remember  that  the  search  for  the names is case-sensitive, that means
  3352.   KCommodity can never find a screen called "Term".
  3353.  
  3354.  
  3355.  
  3356.   Save Log to
  3357.  
  3358.  
  3359.   When  you  select  this  gadget a file requester will open up giving you the
  3360.   possibility to select a new log file.
  3361.  
  3362.  
  3363.  
  3364.   Log filename
  3365.  
  3366.  
  3367.   If  you  are  already  shure  about the log file`s name and location you can
  3368.   easily enter the path / filename here.  KCommodity will make sure that it is
  3369.   possible to write the file otherwise the previously used file will be used.
  3370.  
  3371.  
  3372.  
  3373.   Saturday - Friday
  3374.  
  3375.  
  3376.   These  gadgets  mark  weekdays  for  use  of  cheap tariff the whole day.  A
  3377.   selected  gadget  tells  KCommodity  that normal tariff is not to be used on
  3378.   that day.
  3379.  
  3380.  
  3381.  
  3382.  
  3383.  
  3384.  
  3385.  
  3386.  
  3387.  
  3388.  
  3389.  
  3390.  
  3391.  
  3392.  
  3393.  
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399.  
  3400.  
  3401.      1
  3402.      A very powerful terminal program by Olaf 'Olsen' Barthel
  3403.      2 A very efficient packer by Nico Francois
  3404.  
  3405.  
  3406.  
  3407.  
  3408.  
  3409.   Chapter  7
  3410.  
  3411.  
  3412.  
  3413.   The  ARexx  Port
  3414.  
  3415.  
  3416.  
  3417.   KCommodity  is  equipped  with an ARexx Port.  You can manipulate almost all
  3418.   functions  and retrieve settings via the ARexx port.  The name for the ARexx
  3419.   Port  is  `KComm.1'.  So if you want to send commands to that port you would
  3420.   have to issue
  3421.  
  3422.                                ADDRESS 'KComm.1'
  3423.  
  3424.      within  your ARexx script to get contact with KCommodity.  If you changed
  3425.   the  name  of  the port using the PORTNAME ToolType you would have to insert
  3426.   the name you used, of course.
  3427.  
  3428.      KCommodity  offers  the  possibility  to  send return values to a calling
  3429.   ARexx  script.   To retrieve return values you must issue the following line
  3430.   within your script:
  3431.  
  3432.                                  OPTION RESULTS
  3433.  
  3434.      Having  issued  this  command  you can get the value from the ARexx vari-
  3435.   able  called  RESULT.   There is a command to order return values which does
  3436.   not  have  a subsitute.  This is the STATUS command.  Using this program you
  3437.   can order some of the program`s settings.  There is a list of status numbers
  3438.   in section Status numbers.
  3439.  
  3440.      Please remember that string parameters for a KCommodity command should be
  3441.   enclosed  by  quotes, because it could come to errors while interpreting the
  3442.   command.
  3443.  
  3444.  
  3445.  
  3446.   7.1    Commands for the ARexx Port
  3447.  
  3448.  
  3449.   Here is a list of commands for the ARexx port.
  3450.  
  3451.  
  3452.  
  3453.                                        59
  3454.  
  3455.  
  3456.  
  3457.  
  3458.  
  3459.   CHAPTER 7.  THE AREXX PORT                                                60
  3460.  
  3461.  
  3462.  
  3463.                   ACTIVATE 1|0      Turns the Window activate function
  3464.                                     on / off.
  3465.  
  3466.                   SUNMOUSE 1|0      Turns Sun Mouse on / off.
  3467.  
  3468.                  SHOWCLOCK 1|0       The time / memory display will be
  3469.                                     turned on / off.
  3470.  
  3471.                   CLOCKWIN 1|0      Turning on / off the time / memory
  3472.                                     display for the status window.
  3473.  
  3474.              CLOCKWINPOS 'X/Y'      You can control the status window
  3475.                                     via ARexx.  This command reposi-
  3476.                                     tions the window. Please make sure
  3477.                                     that the X / Y coordinates are seper-
  3478.                                     ated by a `/' and that the complete
  3479.                                     string is enclosed by quotes.
  3480.  
  3481.                   SHOWDATE 1|0      The date for the time display will be
  3482.                                     turned on / off.
  3483.  
  3484.                    SHOWDAY 1|0      The day can be turned on / off via
  3485.                                     ARexx, too.
  3486.  
  3487.                   SHORTDAY 1|0      Choose either the short form (1) or
  3488.                                     the long form (0) for the day string.
  3489.  
  3490.                   SHOWSECS 1|0      Turn on / off the display of seconds.
  3491.  
  3492.                    AMIDATE 1|0      Choose the American (1) or the Ger-
  3493.                                     man (0) format for the date string.
  3494.  
  3495.                    PAGENUM 0-5      Choice of a `page' which should be
  3496.                                     displayed within the Workbench ti-
  3497.                                     tlebar or the status window.  The
  3498.                                     number`s meaning is as follows:
  3499.  
  3500.                                     0 - Time display plus Mouse coor-
  3501.                                     dinates.
  3502.  
  3503.                                     1 - Display free Chip / Fast mem-
  3504.                                     ory.
  3505.  
  3506.                                     2 - Numerically display total free
  3507.                                     memory.
  3508.  
  3509.                                     3 - Timedisplay in conjunction with
  3510.                                     memory display.
  3511.  
  3512.                                     4 - Display total free memory as a
  3513.                                     gauge.
  3514.  
  3515.  
  3516.  
  3517.  
  3518.  
  3519.   CHAPTER 7.  THE AREXX PORT                                                61
  3520.  
  3521.  
  3522.  
  3523.                                     5 | Online time.
  3524.  
  3525.                      ALARM 1|0      Turn on / off alarm function.
  3526.  
  3527.              ALARMTIME 'HH:MM'      You can set the alarm time using
  3528.                                     this command. The input should be
  3529.                                     made as descibed under Alarm time.
  3530.  
  3531.                     SETENV 1|0      Turn on / off environment variables.
  3532.  
  3533.                SCREENTIME Time      Set  a  new  time  for  the  Screen
  3534.                                     Blanker.  These values are treated
  3535.                                     the same way as mentioned under
  3536.                                     Screen time.  This value is created
  3537.                                     using the following way:  Time =
  3538.                                     (Hours*60)+Minutes.
  3539.  
  3540.                 MOUSETIME Time      Use this command to set a new time
  3541.                                     for the Mouse Blanker.  These val-
  3542.                                     ues are treated the same way as de-
  3543.                                     scribed under Mouse time. You cal-
  3544.                                     culate the Time the same way as de-
  3545.                                     scribed under SCREENTIME.
  3546.  
  3547.                    CYCLING 1|0      This command is used to turn on /
  3548.                                     off the Cycling.
  3549.  
  3550.                      CLICK 1|0      Turn on / off keystroke clicker.
  3551.  
  3552.                  CLICKVOL 1-64      Of course you can set the volume for
  3553.                                     the click.
  3554.  
  3555.                   LOGCALLS 1|0      The saving of data as described un-
  3556.                                     der Log call can be turned on / off.
  3557.  
  3558.                       CLEARLOG      Issuing this command will clear the
  3559.                                     Log file.
  3560.  
  3561.               BILLWINPOS 'X/Y'      Like CLOCKWINPOS you can set
  3562.                                     the position for the Bill window using
  3563.                                     the command.
  3564.  
  3565.                  BILLPOPUP 1|0      Turning on / off the PopUp Bill win-
  3566.                                     dow function.
  3567.  
  3568.                   ESCCLOSE 1|0      The ESC Window Close be turned
  3569.                                     on / off via ARexx, too.
  3570.  
  3571.                  MAPUMLAUT 1|0      Turn on / off Map "Umlauts" via
  3572.                                     ARexx.
  3573.  
  3574.  
  3575.  
  3576.  
  3577.  
  3578.   CHAPTER 7.  THE AREXX PORT                                                62
  3579.  
  3580.  
  3581.  
  3582.                    SCRDIMM 1|0      Turning on / off the Screen Dimmer.
  3583.  
  3584.                 ACCELERATE 1|0      Used to turn on / off the mouse ac-
  3585.                                     celerator.
  3586.  
  3587.                      DRIVE 0-3      Select a new drive to be the source
  3588.                                     for the Formatter.
  3589.  
  3590.                   LABEL 'Name'      Define a new label for disks being for-
  3591.                                     mated using KCommodity.
  3592.  
  3593.                   TRASHCAN 1|0      Control the creation of the Trashcan.
  3594.  
  3595.                      QUICK 1|0      Quick formatting may be turn on and
  3596.                                     off via ARexx.
  3597.  
  3598.                        FFS 1|0      You can choos between OFS and FFS
  3599.                                     to be used for formatting disks.
  3600.  
  3601.                   NOVERIFY 1|0      If it takes to long to format a disk
  3602.                                     using Verify you can turn off Verify
  3603.                                     for the 'Olsen' Formatter.
  3604.  
  3605.                    INSTALL 1|0      Since Bootdisks have to be installed
  3606.                                     you can tell 'Olsen`s' Formatter to in-
  3607.                                     stall the disk after the format.
  3608.  
  3609.                      EJECT 1|0      Eject the disk after the format.
  3610.  
  3611.                 WATCHDISKS 1|0      Tell KCommodity to check any in-
  3612.                                     serted disks, or you may turn off this
  3613.                                     feature.
  3614.  
  3615.                         FORMAT      Start to format a disk using the sup-
  3616.                                     plied settings.
  3617.  
  3618.                 AUTOCENTER 1|0      Turn on/off Auto center.
  3619.  
  3620.                   MMBSHIFT 1|0      Control the state of MMB-Shift.
  3621.  
  3622.           LOADPREFS 'Filename'      This command will try to load the
  3623.                                     specifies 'Filename' as a Preferences
  3624.                                     file.   'Filename'will not be stored,
  3625.                                     so if you try to save the Preferen-
  3626.                                     ces from within the main window the
  3627.                                     previously used name will be used.
  3628.  
  3629.           SAVEPREFS 'Filename'      KCommodity  will  try  to  save  the
  3630.                                     Preferences  file  'FileName'.   The
  3631.                                     `normal' filename will be treated as
  3632.                                     described under LOADPREFS.
  3633.  
  3634.  
  3635.  
  3636.  
  3637.  
  3638.  
  3639.  
  3640.  
  3641.  
  3642.  
  3643.  
  3644.  
  3645.  
  3646.  
  3647.   CHAPTER 7.  THE AREXX PORT                                                63
  3648.  
  3649.  
  3650.  
  3651.                         ENABLE      Does the same as mentioned under
  3652.                                     Enable.
  3653.  
  3654.                        DISABLE      Same as for Disable.
  3655.  
  3656.                           HIDE      Closes the main window.
  3657.  
  3658.                          POPUP      Opens the main window.
  3659.  
  3660.                       STATUS x      Ask for status `x'.  Have a look at
  3661.                                     Statur numbers.
  3662.  
  3663.                         REVISE      Activate the Revision Control Sys-
  3664.                                     tem. Have a look at the correspond-
  3665.                                     ing chapter for further information.
  3666.  
  3667.  
  3668.  
  3669.   7.2    Status numbers
  3670.  
  3671.   Here  are  the  status  numbers  returned by KCommodity corresponding to the
  3672.   given number.
  3673.  
  3674.                                  Status numbers
  3675.  
  3676.        Number   Type   Description
  3677.  
  3678.           1     Num    Returns the priority of the program.
  3679.  
  3680.           2     Num    Priority of the broker will be returned.
  3681.  
  3682.           3     String The HotKey for opening the main window will be
  3683.                        returned.
  3684.  
  3685.           4     Bool   Will return TRUE (1), if the main window should
  3686.                        be opened on startup.  If not KCommodity will
  3687.                        return FALSE (0).
  3688.  
  3689.           5     Bool   State of the Window activate function.
  3690.  
  3691.           6     Bool   Sun Mouse active.
  3692.  
  3693.           7     Bool   Time / memory display active.
  3694.  
  3695.           8     Bool   Status window opened.
  3696.  
  3697.           9     String Position of the status window with the format
  3698.                        `X/Y'.
  3699.  
  3700.  
  3701.  
  3702.  
  3703.  
  3704.  
  3705.  
  3706.  
  3707.  
  3708.  
  3709.  
  3710.  
  3711.   CHAPTER 7.  THE AREXX PORT                                                64
  3712.  
  3713.  
  3714.  
  3715.        Number   Type   Description
  3716.  
  3717.          10     Bool   Date active
  3718.  
  3719.          11     Bool   Actual day is beeing displayed.
  3720.  
  3721.          12     Bool   Seconds are displayed.
  3722.  
  3723.          13     Bool   American date is active.
  3724.  
  3725.          14     String HotKey for switching the time / memory display.
  3726.  
  3727.          15     Num    Pagnumber currently beeing displayed.
  3728.  
  3729.          16     Bool   Alarm active.
  3730.  
  3731.          17     String The alarm time will be returned as (HH:MM).
  3732.  
  3733.          18     Bool   Broker active (Enable / Disable).
  3734.  
  3735.          19     Bool   Environment variables active.
  3736.  
  3737.          20     Bool   The full string for the actual day is displayed.
  3738.  
  3739.          21     Num    Time for the Screen Blanker.
  3740.  
  3741.          22     Num    Time for the Mouse Blanker.
  3742.  
  3743.          23     Bool   Cycling active.
  3744.  
  3745.          24     Bool   Keystroke clicker active.
  3746.  
  3747.          25     Num    Returns the selected volume for the clicker.
  3748.  
  3749.          26     Bool   Data about a phone call will be saved.
  3750.  
  3751.          27     String Bill window`s postion of the form `X/Y'.
  3752.  
  3753.          28     Bool   The Bill window will be opened on a Carrier Detect.
  3754.  
  3755.          29     Bool   The Workbench will be brought to front if you try
  3756.                        to open the main window. (WB to front)
  3757.  
  3758.          30     Bool   LeftyMouse active.
  3759.  
  3760.          31     Bool   ESC Window Close active.
  3761.  
  3762.          32     Bool   Returns  the  ESC  Window  Close`s  qualifier  as
  3763.                        RawKey-Codes.
  3764.  
  3765.          33     Bool   Map "Umlauts\ active.
  3766.  
  3767.          34     Bool   AppIcon active.
  3768.  
  3769.          35     Bool   Exploding Windows active.
  3770.  
  3771.          36     Num    Number of frames for the explosion of windows.
  3772.  
  3773.          37     Num    Number of frames for the implosion of windows.
  3774.  
  3775.  
  3776.  
  3777.  
  3778.  
  3779.  
  3780.  
  3781.  
  3782.  
  3783.  
  3784.  
  3785.  
  3786.  
  3787.  
  3788.  
  3789.  
  3790.   CHAPTER 7.  THE AREXX PORT                                                65
  3791.  
  3792.  
  3793.  
  3794.        Number   Type   Description
  3795.  
  3796.          38     Num    Number of frames for the metamorphosis of win-
  3797.                        dows.
  3798.  
  3799.          39     Bool   Screen Dimmer active.
  3800.  
  3801.          40     Num    Factor for the Screen Dimmer.
  3802.  
  3803.          41     Num    Returns the priority of the InputHandler.
  3804.  
  3805.          42     Bool   Determines, whether the AppMenuItem is acitve.
  3806.  
  3807.          43     Bool   This flag tells you, whether the mouse accelerator
  3808.                        is active.
  3809.  
  3810.          44     Num    Returns the acceleration factor.
  3811.  
  3812.          45     Num    Returns the threshold.
  3813.  
  3814.          46     Num    The selected drivenumber for formating will be re-
  3815.                        turned.
  3816.  
  3817.          47     String The disks` label will be returned.
  3818.  
  3819.          48     Bool   Trashcan to be generated ?
  3820.  
  3821.          49     Bool   User selected Quickformatting.
  3822.  
  3823.          50     Bool   Tells you whether OFS (FALSE) or FFS (TRUE)
  3824.                        is used to format a disk.
  3825.  
  3826.          51     Bool   Format with (FALSE) or without (TRUE) Verify ?
  3827.  
  3828.          52     Bool   Disk to be installed ?
  3829.  
  3830.          53     Bool   Returns (TRUE) if the disk is to be ejected after
  3831.                        the format.
  3832.  
  3833.          54     Bool   Tells you whether KCommodity checks inserted
  3834.                        disks.
  3835.  
  3836.          55     Bool   Gives information about the state of Auto center.
  3837.  
  3838.          56     Num    Returns the keycode for "window-to-front".  This
  3839.                        value is a RawKey-Code.
  3840.  
  3841.          57     Num    As with (56), but the qualifier will be returned.
  3842.  
  3843.          58     Num    Returns the keycode for "window-to-back". Again,
  3844.                        this is a RawKey-Code.
  3845.  
  3846.          59     Num    The corresponding qualifier will be returned.
  3847.  
  3848.          60     Num    This status returns the qualifier (RawKey-Code)
  3849.                        for the middle mousebutton.
  3850.  
  3851.  
  3852.  
  3853.  
  3854.  
  3855.  
  3856.  
  3857.  
  3858.  
  3859.  
  3860.  
  3861.  
  3862.  
  3863.  
  3864.  
  3865.   CHAPTER 7.  THE AREXX PORT                                                66
  3866.  
  3867.  
  3868.  
  3869.        Number   Type   Description
  3870.  
  3871.          61     Num    Number of clicks for "window-to-front".
  3872.  
  3873.          62     Num    Number of clicks for "window-to-back".
  3874.  
  3875.          63     Num    Number of clicks for the middle mousebutton ac-
  3876.                        tion.
  3877.  
  3878.          64     Bool   MMB-Shift active ?
  3879.  
  3880.          65     Num    Returns the starttime for normal tariff.  To get
  3881.                        the hours and minutes do the following calcula-
  3882.                        tion: Hour = ABS(Value/6); Minutes = REMAIN-
  3883.                         DER(Zahl/6)*10.
  3884.  
  3885.          66     Num    Returns the starttime for cheap tariff. The value is
  3886.                        made the same way as described under (65).
  3887.  
  3888.          67     Bool   From 67 to 73, there are boolflags for the seven
  3889.                        weekdays.  A set flag will tell you that this day
  3890.                        is only for cheap tariff.  At position 67 there is
  3891.                        saturday and at position 73 there is friday.
  3892.  
  3893.  
  3894.  
  3895.                      Description of Returnvalues
  3896.  
  3897.         Returnvalue     Description
  3898.  
  3899.           Bool          Either 1 (TRUE) or 0 (FALSE) will be returned. A 1
  3900.                         means that the corresponding function is active, but
  3901.                         the 0 means that it is deactivated.
  3902.  
  3903.           Num           A numerical value will be returned.
  3904.  
  3905.           String        You get a string as result. This string takes the form
  3906.                         described in the list.
  3907.  
  3908.  
  3909.      As  you  can see there are status numbers for almost all of the program`s
  3910.   settings.   This  might  be  helpful  for  ARexx  scripts to determine which
  3911.   actions should be taken from within these scripts.
  3912.  
  3913.  
  3914.  
  3915.  
  3916.  
  3917.   Appendix  A
  3918.  
  3919.  
  3920.  
  3921.   Error  codes
  3922.  
  3923.  
  3924.  
  3925.   x could not be opened.
  3926.  
  3927.  
  3928.   This  error  code  tells you that a requiered library or device could not be
  3929.   opened.   Make  sure  that the desiered file is located at the correct place
  3930.   (Libraries  within  LIBS:   and devices within DEVS:).  It is best to always
  3931.   use the latest resources.
  3932.  
  3933.  
  3934.  
  3935.   Broker-Port could not be created.
  3936.  
  3937.  
  3938.   The  port  for  communicating  with  Exchange  and  for controlling the main
  3939.   functions  could  not be installed.  It might help you to close some windows
  3940.   and  to  stop several programs, because a lack of memory could be the reason
  3941.   for this error.
  3942.  
  3943.  
  3944.  
  3945.   Broker could not be set up.
  3946.  
  3947.  
  3948.   The  program`s  main control structure could not be installed.  Again a lack
  3949.   of free memory could be the reason.
  3950.  
  3951.  
  3952.  
  3953.   Broker could not be set up correctly.
  3954.  
  3955.  
  3956.   The  program`s  main  interface could not be set up.  The difference between
  3957.   this error and the one mentioned above is that the system did not understand
  3958.   a definition within the structure.
  3959.  
  3960.  
  3961.  
  3962.                                        67
  3963.  
  3964.  
  3965.  
  3966.  
  3967.  
  3968.   APPENDIX A.  ERROR CODES                                                  68
  3969.  
  3970.  
  3971.  
  3972.   Sorry, memory for InputRequest could not be allocated.
  3973.  
  3974.  
  3975.   Memory  for the InputRequest could not be allocated.  Try to free memory and
  3976.   restart the program.
  3977.  
  3978.  
  3979.  
  3980.   Sorry, MessagePort for InputRequest could not be created.
  3981.  
  3982.  
  3983.   A  Message  Port could not be installed.  Without this port the InputHandler
  3984.   can not be installed.  Again the reason might be lack of memory.
  3985.  
  3986.  
  3987.  
  3988.   Sorry, InputHandler could not be installed.
  3989.  
  3990.  
  3991.   The  main  InputHandler  could  not  be installed.  It may either be lack of
  3992.   memory  of a wrong structure definition.  Try to free memory and restart the
  3993.   program.
  3994.  
  3995.  
  3996.  
  3997.   Could not set up ARexx-Port.
  3998.  
  3999.  
  4000.   The ARexx Port could not be installed.  Lack of memory could be the reason.
  4001.  
  4002.  
  4003.  
  4004.   Audio-Port could not be set up. ...
  4005.  
  4006.  
  4007.   The Message Port for the audio device could not be generated.  Therefore the
  4008.   Key-Click  option  is  totally  disabled  now.   You  can try to restart the
  4009.   program, after you have stopped several programs.
  4010.  
  4011.  
  4012.  
  4013.   Sorry, out of memory.
  4014.  
  4015.  
  4016.   Simple  :   Not  enough memory to execute the desired function.  Try to quit
  4017.   some programs which are not needed.
  4018.  
  4019.  
  4020.  
  4021.   Sorry, could not generate BitMap.
  4022.  
  4023.  
  4024.   The  BitMap  structure  for  the  time display within the Workbench titlebar
  4025.   could  not  be initialized.  The reason for this error definitely is lack of
  4026.   memory.
  4027.  
  4028.  
  4029.  
  4030.  
  4031.  
  4032.   APPENDIX A.  ERROR CODES                                                  69
  4033.  
  4034.  
  4035.  
  4036.   Sorry, could not generate RastPort.
  4037.  
  4038.  
  4039.   Same  as  above.   The  RastPort  structure for the display within the Work-
  4040.   bench titlebar could not be initialize.
  4041.  
  4042.  
  4043.  
  4044.   Could not allocate memory for BitPlanes.
  4045.  
  4046.  
  4047.   The  BitPlanes  for  the  Workbench titlebar display could not be allocated.
  4048.   Make  sure  that programs running are not consuming too much Chip memory and
  4049.   stop them in this case.
  4050.  
  4051.  
  4052.  
  4053.   Could not set appropriate font.
  4054.  
  4055.  
  4056.   The font for Workbench titlebar display could not be set.  This error should
  4057.   never  occure  due to the fact that the Workbench is already using this font
  4058.   (but one can never know).
  4059.  
  4060.  
  4061.  
  4062.   Could not allocate memory for ARexx-Buffer.
  4063.   Could not allocate memory for Audio-Request.
  4064.   Could not allocate memory for Console-Request.
  4065.  
  4066.  
  4067.   Again  there  is  not  enough  memory.   Try  to free memory and restart the
  4068.   program.
  4069.  
  4070.  
  4071.  
  4072.   User HotKey ... could not be set up ...
  4073.  
  4074.  
  4075.   One  of  the user-defined HotKeys for the several functions could not be in-
  4076.   stalled.   The  program will take the default HotKey now.  Check your HotKey
  4077.   definitions.
  4078.  
  4079.  
  4080.  
  4081.   Default HotKey ... could not be set up ...
  4082.  
  4083.  
  4084.   A  default  HotKey  could not be installed.  The attempt failed and the pro-
  4085.   gram quits.  Try to free memory.
  4086.  
  4087.  
  4088.  
  4089.  
  4090.  
  4091.   APPENDIX A.  ERROR CODES                                                  70
  4092.  
  4093.  
  4094.  
  4095.   Sorry, but the AppIcon could not be installed.
  4096.  
  4097.  
  4098.   The  AppIcon could not be displayed.  This can happen if there is not suffi-
  4099.   cient memory or the Workbench is not present.
  4100.  
  4101.  
  4102.  
  4103.   Sorry, but the AppMenuItem could not be installed.
  4104.  
  4105.  
  4106.   Same as above, but the AppMenuItem could not be installed this time.
  4107.  
  4108.  
  4109.  
  4110.   The Preferences-File you attempted to load...
  4111.  
  4112.  
  4113.   You  tried  to  load  a  Preferences file which was not generated using this
  4114.   version of KCommodity.
  4115.  
  4116.  
  4117.  
  4118.   Could not allocate IFF-Handle for access to file.
  4119.  
  4120.  
  4121.   KCommodity  was  not able to allocate a needed structure, in order to obtain
  4122.   access to an IFF-File.  Try to free some memory.
  4123.  
  4124.  
  4125.  
  4126.   Could not allocate User Task-Signal.
  4127.  
  4128.  
  4129.   A needed task signal could not be allocated.  Try to start KCommodity again,
  4130.   or make a reset, because this error code should never occure.
  4131.  
  4132.  
  4133.  
  4134.   Shared IDCMP-Port for windows could not be allocated.
  4135.  
  4136.  
  4137.   Because  of  the  number of windows KCommodity controls, there is need for a
  4138.   single  port,  all IDCMP messages go through.  This Port has to be allocated
  4139.   by  the  application.   If you discover this error message, a lack of memory
  4140.   might be the problem.
  4141.  
  4142.  
  4143.  
  4144.   Could not allocate Port for trackdisk.device
  4145.  
  4146.  
  4147.   The  MessagePort  for  the  trackdisk.device  could  not be allocated.  This
  4148.   device serves for checking inserted disks.  Try to free some memory.
  4149.  
  4150.  
  4151.  
  4152.  
  4153.  
  4154.   Appendix  B
  4155.  
  4156.  
  4157.  
  4158.   Why  KCommodity  ?
  4159.  
  4160.  
  4161.  
  4162.   In November 1991 I finally got to know the great Operating System OS 2.0.  I
  4163.   was  astonished  of  the  new  features  and  possibilities the OS offers to
  4164.   programmers,  I  immediatley  wanted to start programming something made for
  4165.   the new environment.  As I did not have the appropriate developper packages,
  4166.   yet,  my  wish  should  wait some more.  Because the update for my Assembler
  4167.   arrived before the one for the C-Compiler I started to program the new OS in
  4168.   Assembler.  As I tested DMouse1 under OS 2.0 I recognized something:
  4169.  
  4170.      With  an activated window activator one could not make inputs into String
  4171.   Gadget  while  the mouse was not positioned right over the window containing
  4172.   the  gadget.   This  "error"  occured while using the Workbench`s AutoPoint,
  4173.   too.   So  I  started  to  write  my  own window activator to eliminate that
  4174.   problem.   With  growing  knowledge  of  the  new  Operating  System and the
  4175.   ambition  to  start  a bigger project I continued and that is how KCommodity
  4176.   developed.   I implemented some other functions to get rid of programs doing
  4177.   only  minor  jobs.  So it came as it should.  The first release in ADS2.  So
  4178.   others  got  to  know  my  program  and  supplied  usefull bugfixes and made
  4179.   suggestions  on how to improve the program.  I came to a point where it only
  4180.   depends  on  the care for my program and to steadily remove bugs reported by
  4181.   users.  That is why I am looking forward to what you are going to report and
  4182.   I relly hope that more suggestions are to come.
  4183.  
  4184.      I  would  like  to  thank the following persons for giving bugreports and
  4185.   making suggestions:
  4186.      1
  4187.      A program like KCommodity by Matt Dillon
  4188.      2 A subnet of FIDO
  4189.  
  4190.  
  4191.  
  4192.                                        71
  4193.  
  4194.  
  4195.  
  4196.  
  4197.  
  4198.   APPENDIX B.  WHY KCOMMODITY ?                                             72
  4199.  
  4200.  
  4201.  
  4202.      Christoph  Reichert  (my FIDO-Boss), Dirk Federlein (a good friend), Mar-
  4203.   ing  Berndt  (I  got  to  know  because of KCommodity and we call each other
  4204.   almost  every  day  even thought we have not met till now), Michael Bergmann
  4205.   (my  1st  registered user), Jürgen Rüddel (my 2nd registered user), Dirk Sp-
  4206.   ingler  (my...),  Michael  Wenzel (my...), Bernd ???  (EMBO; an unknown from
  4207.   Z-Net),  Ruud van der Veen (I never heard from again :-), Hermann Dörries (I
  4208.   never  heard  from  again,  too),  Tammy  (my  girl-friend),  Kai Bolay (who
  4209.   requested the Special qualifier, but never wrote again :-)
  4210.